Skip to content

Commit

Permalink
fix version package.json replace
Browse files Browse the repository at this point in the history
  • Loading branch information
fxck committed Oct 7, 2020
1 parent 051f635 commit 837d5f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
registry-url: https://registry.npmjs.org/
- run: npm ci --ignore-scripts
- run: npm i -g replace-in-files-cli
- run: replace-in-files --string='v0.0.0-zerops' --replacement='v${{ github.event.release.tag_name }}' package.json
- run: replace-in-files --string='v0.0.0-zerops' --replacement='${{ github.event.release.tag_name }}' package.json
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2 changes: 1 addition & 1 deletion tools/npm/binary.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function getPlatform() {
function getBinary() {
const platform_arch = getPlatform();
const version = require("../../package.json").version;
const url = `https://github.com/zeropsio/zcli/releases/download/${version}/zcli-${platform_arch}.tar.gz`;
const url = `https://github.com/zeropsio/zcli/releases/download/v${version}/zcli-${platform_arch}.tar.gz`;
const name = `zcli-${platform_arch}`;
return new Binary(url, { name });
}
Expand Down

0 comments on commit 837d5f9

Please sign in to comment.