Skip to content

Commit

Permalink
add ncc module for compiling one index.js file
Browse files Browse the repository at this point in the history
  • Loading branch information
Emily Rodriguez committed Feb 21, 2022
1 parent f4b5426 commit 1ba8a5a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ jobs:
with:
ref: ${{ github.ref }}
- name: Build Node Modules
run: npm ci
run: |
npm ci
npx ncc build ./index.js
- name: Get Release Notes
run: |
echo "$(git tag -l --sort=taggerdate --format="%(contents:subject)" | tail -n 1)" > RELEASE_NOTES
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/update-release-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ jobs:
with:
ref: ${{ github.event.release.tag_name }}
- name: Build Node Modules
run: npm ci
run: |
npm ci
npx ncc build ./index.js
- uses: JasonEtco/build-and-tag-action@v1
env:
GITHUB_TOKEN: ${{ github.token }}
16 changes: 15 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "saf_action_test",
"version": "14.0.0",
"description": "GitHub Action for [SAF CLI](https://github.com/mitre/saf)",
"main": "index.js",
"main": "dist/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand All @@ -19,6 +19,7 @@
"homepage": "https://github.com/em-c-rod/saf_action_test#readme",
"dependencies": {
"@actions/core": "^1.6.0",
"@mitre/saf": "^1.0.5"
"@mitre/saf": "^1.0.5",
"@vercel/ncc": "^0.33.3"
}
}

0 comments on commit 1ba8a5a

Please sign in to comment.