Skip to content

Commit

Permalink
ci: use jq to derive npm version
Browse files Browse the repository at this point in the history
  • Loading branch information
junners committed Jun 1, 2024
1 parent ec8cadf commit c363567
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/deploy-BETA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ jobs:
- run: |
git config --global user.name ${{ vars.USER_NAME }}
git config --global user.email ${{ vars.USER_EMAIL }}
- run: npm i -D semver
- run: npm i -D semver node-jq
- run: set npm_package_version=$(npx node-jq ".version" package.json)
- run: npm version $(semver $npm_package_version -i patch)
shell: bash
- run: npm publish --tag beta
Expand Down

0 comments on commit c363567

Please sign in to comment.