Skip to content

Commit

Permalink
fix publish label
Browse files Browse the repository at this point in the history
  • Loading branch information
arantes555 committed Oct 21, 2021
1 parent 75f22ee commit 750af75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- run: npm ci
- run: npm run prepublishOnly
- id: get_npm_label
run: if (npx semver ${{ github.event.release.tag_name }} --range '>0.0.0'); then echo ::set-output name=NPM_LABEL::latest; else echo ::set-output name=NPM_LABEL::beta; fi; # Using the fact that semver by default considers that pre-releases do not respect stable ranges
run: if (npx semver $(node -p "require('./package.json').version") --range '>0.0.0'); then echo ::set-output name=NPM_LABEL::latest; else echo ::set-output name=NPM_LABEL::beta; fi; # Using the fact that semver by default considers that pre-releases do not respect stable ranges
- run: npm publish --tag=${NPM_LABEL} --access public
env:
NPM_LABEL: ${{ steps.get_npm_label.outputs.NPM_LABEL }}
Expand Down

0 comments on commit 750af75

Please sign in to comment.