File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,11 +43,11 @@ jobs:
4343 shell : bash
4444 run : |
4545 BRANCH="${GITHUB_REF#refs/heads/}"
46- if [ "$BRANCH" == 'main ' ]
46+ if [ "$BRANCH" == 'master ' ]
4747 then
4848 echo "Branch validation Successful"
4949 else
50- echo "Releases only taken from main branch"
50+ echo "Releases only taken from master branch"
5151 exit 1
5252 fi
5353
7676 git config user.email github-actions@github.com
7777 git add package.json package-lock.json
7878 git commit -m "Bump version from $OLD_VERSION to $NEW_VERSION"
79- git push origin HEAD:main
79+ git push origin HEAD:master
8080
8181 - name : Build Package
8282 run : npm run build
9090 # Revert package.json and package-lock.json to the previous version
9191 npm version ${{ env.latest_version }} --no-git-tag-version
9292 git commit -am "Revert to version ${{ env.latest_version }}"
93- git push origin HEAD:main
93+ git push origin HEAD:master
9494 if : failure()
9595
9696 - name : Create GitHub release
You can’t perform that action at this time.
0 commit comments