From 14cf8f85ffab48e386664f2e9686a986f4e98e04 Mon Sep 17 00:00:00 2001 From: John Haugeland Date: Mon, 18 Apr 2022 11:00:05 -0700 Subject: [PATCH] attempt 5 full automatic release --- .github/workflows/nodejs.yml | 4 +--- src/buildjs/verify_version_bump.js | 4 +++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 490e209a..4fe05883 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -62,10 +62,8 @@ jobs: - name: Verify the version was bumped run: | npm install - git config --global user.email "stonecypher@gmail.com" + git config --global user.email "stonecypher@users.noreply.github.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 diff --git a/src/buildjs/verify_version_bump.js b/src/buildjs/verify_version_bump.js index 4fce1433..f0491d81 100644 --- a/src/buildjs/verify_version_bump.js +++ b/src/buildjs/verify_version_bump.js @@ -22,8 +22,10 @@ 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(` Committing`); + execSync(`git commit -m ${JSON.stringify(last_commit_msg)}`); console.log(` Pushing tags`); - execSync(`git push gh-token --tags`); + execSync(`git push origin --tags`); process.exit(0);