From 1fc7bea94aac655098944f69c6b43c2ef1b6a3c8 Mon Sep 17 00:00:00 2001 From: John Haugeland Date: Mon, 18 Apr 2022 00:03:21 -0700 Subject: [PATCH] attempt 4 full automatic release --- .github/workflows/nodejs.yml | 4 ++-- package.json | 2 +- src/buildjs/verify_version_bump.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index b8ea5b64..490e209a 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -64,11 +64,11 @@ jobs: npm install git config --global user.email "stonecypher@gmail.com" git config --global user.name "John Haugeland through Github Actions" + git remote add gh-token "https://${{ secrets.GH_TOKEN }}@github.com/:user/:repo.git" + git fetch gh-token node ./src/buildjs/verify_version_bump.js export TAG=$(head -1 CHANGELOG.tmp | cut -d' ' -f2) echo "TAG=$TAG" >> $GITHUB_ENV - with: - repo-token: ${{ JSSM_TAG_UPDATE_TOKEN }} - name: Create the release uses: actions/create-release@v1 env: diff --git a/package.json b/package.json index a0f73828..18a5620d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jssm", - "version": "5.41.6", + "version": "5.41.7", "engines": { "node": ">=10.0.0" }, diff --git a/src/buildjs/verify_version_bump.js b/src/buildjs/verify_version_bump.js index 55f4b29d..4fce1433 100644 --- a/src/buildjs/verify_version_bump.js +++ b/src/buildjs/verify_version_bump.js @@ -23,7 +23,7 @@ if (semver.valid(public_version)) { console.log(`Version is updated; passing ☑\n (public ${public_version}, private ${priv_version}\n\nApplying tags`); execSync(`git tag -a v${priv_version} -m ${JSON.stringify(last_commit_msg)}`); console.log(` Pushing tags`); - execSync(`git push origin --tags`); + execSync(`git push gh-token --tags`); process.exit(0);