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