Skip to content

Commit

Permalink
attempt 5 full automatic release
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneCypher committed Apr 18, 2022
1 parent 1fc7bea commit 14cf8f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/nodejs.yml
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion src/buildjs/verify_version_bump.js
Expand Up @@ -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);


Expand Down

0 comments on commit 14cf8f8

Please sign in to comment.