Skip to content

Commit f6f0451

Browse files
Deploy yml file main to master
1 parent a1ded88 commit f6f0451

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/deploy.yml

+4-4
Original file line numberDiff line numberDiff 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
@@ -76,7 +76,7 @@ jobs:
7676
git config user.email [email protected]
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
@@ -90,7 +90,7 @@ jobs:
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

0 commit comments

Comments
 (0)