From f2035d79dd4c2deccb964e183c345d9b90434611 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Fri, 13 Feb 2026 14:28:55 +0100 Subject: [PATCH] chore: automate re-push in pre-push hook --- .husky/pre-push | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.husky/pre-push b/.husky/pre-push index e791bcc..3f7537e 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -23,8 +23,13 @@ do git tag -f "$TAG" > /dev/null echo "✅ Tag $TAG has been updated locally with synced versions." - echo "🚀 Please run your push command again." - exit 1 # Abort push to let user re-push the corrected tag + echo "🚀 Auto-pushing updated tag..." + + # Push the updated tag directly (using --no-verify to avoid recursion) + git push origin "$TAG" --force --no-verify + + echo "✨ All done! Hook integrated the sync and pushed for you." + exit 1 # Still exit 1 to abort the original (now outdated) push attempt else echo "✨ Versions already in sync for $TAG." fi