Skip to content

Commit

Permalink
attempt 4 full automatic release
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneCypher committed Apr 18, 2022
1 parent 91b6652 commit 1fc7bea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "jssm",
"version": "5.41.6",
"version": "5.41.7",
"engines": {
"node": ">=10.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/buildjs/verify_version_bump.js
Expand Up @@ -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);


Expand Down

0 comments on commit 1fc7bea

Please sign in to comment.