File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,11 +43,11 @@ jobs:
43
43
shell : bash
44
44
run : |
45
45
BRANCH="${GITHUB_REF#refs/heads/}"
46
- if [ "$BRANCH" == 'main ' ]
46
+ if [ "$BRANCH" == 'master ' ]
47
47
then
48
48
echo "Branch validation Successful"
49
49
else
50
- echo "Releases only taken from main branch"
50
+ echo "Releases only taken from master branch"
51
51
exit 1
52
52
fi
53
53
76
76
git config user.email [email protected]
77
77
git add package.json package-lock.json
78
78
git commit -m "Bump version from $OLD_VERSION to $NEW_VERSION"
79
- git push origin HEAD:main
79
+ git push origin HEAD:master
80
80
81
81
- name : Build Package
82
82
run : npm run build
90
90
# Revert package.json and package-lock.json to the previous version
91
91
npm version ${{ env.latest_version }} --no-git-tag-version
92
92
git commit -am "Revert to version ${{ env.latest_version }}"
93
- git push origin HEAD:main
93
+ git push origin HEAD:master
94
94
if : failure()
95
95
96
96
- name : Create GitHub release
You can’t perform that action at this time.
0 commit comments