diff --git a/.github/workflows/deploy-BETA.yml b/.github/workflows/deploy-BETA.yml index 0adbc1b..675fed7 100644 --- a/.github/workflows/deploy-BETA.yml +++ b/.github/workflows/deploy-BETA.yml @@ -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: