-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: release workflow fix version condition
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 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 |
---|---|---|
|
@@ -57,13 +57,13 @@ jobs: | |
echo "fs.inotify.max_user_watches=524288" | sudo tee -a /etc/sysctl.conf | ||
npm run test:build | ||
- name: Bump version | ||
if: startsWith(env.BRANCH,'release') == true | ||
if: env.BRANCH == 'release' | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
npm run release | ||
- name: Push changes | ||
if: startsWith(env.BRANCH,'release') == true | ||
if: env.BRANCH == 'release' | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|