-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/automate-release-on-merge' into feature/test-au…
…tomated-release
- Loading branch information
Showing
1 changed file
with
4 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,8 @@ jobs: | |
- name: Checkout develop | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: develop | ||
# For testing checkout to a temp branch, will be changed to develop | ||
ref: feature/test-automated-release | ||
token: ${{ secrets.GH_TOKEN }} | ||
- name: Bump package.json version | ||
run: | | ||
|
@@ -66,10 +67,11 @@ jobs: | |
run: | | ||
git add . | ||
git commit -m "Bump version ${{ outputs.full-release-version }} and update changelog" | ||
git push --set-upstream origin develop | ||
git push origin feature/test-automated-release | ||
- name: Tag and push | ||
uses: actions/github-script@v6 | ||
# Tag push should happen without a token, otherwise it will not trigger release workflow | ||
# DO NOT PUSH TAG FOR TESTING | ||
with: | ||
script: | | ||
const { execSync } = require('child_process'); | ||
|
@@ -83,4 +85,3 @@ jobs: | |
execSync(`git config --global user.name 'Automated Release'`); | ||
execSync(`git config --global user.email '[email protected]'`); | ||
execSync(`git tag -a ${tag} -m "${message}"`); | ||
execSync(`git push --set-upstream origin develop ${tag}`); |