Skip to content

Commit

Permalink
chore: test beta push
Browse files Browse the repository at this point in the history
  • Loading branch information
junners committed Jun 1, 2024
1 parent be3bc12 commit bb2d6e3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/deploy-BETA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,14 @@ jobs:
git config --global user.name ${{ vars.USER_NAME }}
git config --global user.email ${{ vars.USER_EMAIL }}
- run: npm i -D semver node-jq
- run: export npm_package_version=$(npx node-jq ".version" package.json)
- run: npm version $(semver $npm_package_version -i patch)
- run: export original_npm_package_version=$(npx node-jq ".version" package.json)
- run: export npm_package_version=$(semver $original_npm_package_version --increment patch --coerce)
- run: sed -i 's/$original_npm_package_version/"$npm_package_version"/g' package.json
- run: cat package.json
# - run: |
# git commit -am "ci: update package json to $npm_package_version [skip ci]"
# git push
- run: npm version $npm_package_version
shell: bash
- run: npm publish --tag beta
env:
Expand Down

0 comments on commit bb2d6e3

Please sign in to comment.