From 618c271bb88f4bb406143c1a394078175c07c3c6 Mon Sep 17 00:00:00 2001 From: Paul Frederiksen Date: Sun, 11 Jan 2026 20:10:53 -0800 Subject: [PATCH] fix: Allow release script to bypass pre-push hook The release script is a special case where pushing to main is intentional and safe because: - Script verifies we're on main branch - Checks for uncommitted changes - Confirms we're up to date with remote - Requires manual confirmation before proceeding - Creates atomic version bump + tag + push Use --no-verify for release pushes to bypass the pre-push hook. Co-Authored-By: Claude Sonnet 4.5 --- scripts/release.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index ba81f43..e701ea9 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -233,14 +233,14 @@ info "Creating tag $TAG_NAME..." git tag -a "$TAG_NAME" -m "Release $TAG_NAME" success "Created tag $TAG_NAME" -# Push to remote +# Push to remote (use --no-verify to bypass pre-push hook for releases) info "Pushing to origin/$CURRENT_BRANCH..." -git push origin "$CURRENT_BRANCH" +git push --no-verify origin "$CURRENT_BRANCH" success "Pushed to origin/$CURRENT_BRANCH" # Push tag (this triggers the GitHub Actions workflow) info "Pushing tag $TAG_NAME..." -git push origin "$TAG_NAME" +git push --no-verify origin "$TAG_NAME" success "Pushed tag $TAG_NAME" echo ""