Skip to content

Commit

Permalink
chore: revert back to prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
junners committed Jun 1, 2024
1 parent debd178 commit 8e6bf44
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/deploy-BETA.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,18 @@ jobs:
- run: |
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 original_npm_package_version=$(npx node-jq ".version" package.json)
echo $original_npm_package_version
export npm_package_version=$(npx semver $original_npm_package_version --increment patch --coerce)
echo $npm_package_version
- run: npx node-jq --arg version "$npm_package_version" '.version=$version' package.json > package2.json && rm package.json && mv package2.json package.json
- run: |
git commit -am "ci: update package json to $npm_package_version [skip ci]"
git push
- run: npm version $npm_package_version
# - run: npm i -D semver node-jq
# - run: |
# export original_npm_package_version=$(npx node-jq ".version" package.json)
# echo $original_npm_package_version
# export npm_package_version=$(npx semver $original_npm_package_version --increment patch --coerce)
# echo $npm_package_version
# - run: npx node-jq --arg version "$npm_package_version" '.version=$version' package.json > package2.json && rm package.json && mv package2.json package.json
# - run: |
# git commit -am "ci: update package json to $npm_package_version [skip ci]" --no-verify
# git push
# - run: npm version $npm_package_version
- run: BETAID=$(date '+%Y%m%d%H%M') && npm version prerelease --preid="beta$BETAID"
shell: bash
- run: npm publish --tag beta
env:
Expand Down

0 comments on commit 8e6bf44

Please sign in to comment.