Skip to content

Commit

Permalink
chore(cd): move logic to cd
Browse files Browse the repository at this point in the history
  • Loading branch information
devpolo committed Oct 7, 2021
1 parent f5ec2d8 commit cd1cdb3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ jobs:
npm install
- name: Release Package
run: |
pkg dist/src/index.js --targets node14-macos-x64 --output release/gac
tar -cvzf release/gac-macos-x64.tar.gz release/gac
npm run build
npm run package
npm run archive
- name: Get version
id: get_version
run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build": "tsc",
"start": "tsc & node .",
"dev": "tsc -w & nodemon .",
"package": "pkg ./dist/src/index.js --targets node14-macos-x64 --output ./release/gac",
"package": "pkg dist/src/index.js --targets node14-macos-x64 --output release/gac",
"archive": "tar -cvzf release/gac-macos-x64.tar.gz release/gac"
},
"dependencies": {
Expand Down

0 comments on commit cd1cdb3

Please sign in to comment.