From c3635677bca85fd1cfc60b12499c93a6dfb06d22 Mon Sep 17 00:00:00 2001 From: junners Date: Fri, 31 May 2024 21:46:53 -0700 Subject: [PATCH] ci: use jq to derive npm version --- .github/workflows/deploy-BETA.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-BETA.yml b/.github/workflows/deploy-BETA.yml index 9b60372..ddb90e2 100644 --- a/.github/workflows/deploy-BETA.yml +++ b/.github/workflows/deploy-BETA.yml @@ -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