Skip to content

Commit

Permalink
Deploy yml file main to master
Browse files Browse the repository at this point in the history
  • Loading branch information
aarathyKeyvalue committed Mar 20, 2023
1 parent a1ded88 commit f6f0451
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f6f0451

Please sign in to comment.