-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a1ded88
commit f6f0451
Showing
1 changed file
with
4 additions
and
4 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 |
---|---|---|
|
@@ -43,11 +43,11 @@ jobs: | |
shell: bash | ||
run: | | ||
BRANCH="${GITHUB_REF#refs/heads/}" | ||
if [ "$BRANCH" == 'main' ] | ||
if [ "$BRANCH" == 'master' ] | ||
then | ||
echo "Branch validation Successful" | ||
else | ||
echo "Releases only taken from main branch" | ||
echo "Releases only taken from master branch" | ||
exit 1 | ||
fi | ||
|
@@ -76,7 +76,7 @@ jobs: | |
git config user.email [email protected] | ||
git add package.json package-lock.json | ||
git commit -m "Bump version from $OLD_VERSION to $NEW_VERSION" | ||
git push origin HEAD:main | ||
git push origin HEAD:master | ||
- name: Build Package | ||
run: npm run build | ||
|
@@ -90,7 +90,7 @@ jobs: | |
# Revert package.json and package-lock.json to the previous version | ||
npm version ${{ env.latest_version }} --no-git-tag-version | ||
git commit -am "Revert to version ${{ env.latest_version }}" | ||
git push origin HEAD:main | ||
git push origin HEAD:master | ||
if: failure() | ||
|
||
- name: Create GitHub release | ||
|