Skip to content

Commit

Permalink
chore: Script improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
lewislarsen committed Jul 7, 2024
1 parent bcc98ea commit f77af55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bump_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ echo "$NEW_VERSION" > VERSION

log "INFO" "Committing version bump..."
git add VERSION
git commit -m "chore: bump version from $OLD_VERSION to $NEW_VERSION 🎉"
git commit --no-verify -m "chore: bump version from $OLD_VERSION to $NEW_VERSION 🎉"

if git rev-parse -q --verify "refs/tags/$OLD_VERSION" >/dev/null; then
log "WARNING" "Deleting old tag locally..."
Expand All @@ -182,7 +182,7 @@ fi
git tag "$NEW_VERSION"

log "INFO" "Pushing changes to GitHub..."
if ! git push origin main "$NEW_VERSION"; then
if ! git push --no-verify origin main "$NEW_VERSION"; then
log "ERROR" "Failed to push changes to GitHub."
exit 1
fi
Expand Down

0 comments on commit f77af55

Please sign in to comment.