diff --git a/.husky/pre-push b/.husky/pre-push index bb5228b..e4478c7 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -35,8 +35,9 @@ do # 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 + echo "✨ Success! The hook synchronized the versions and pushed the updated tag for you." + echo "ℹ️ Note: The original push command was aborted in favor of the auto-push. This is normal." + exit 0 # Change to exit 0 to not show as an 'error' in vscode/terminal, though original push will still be technically 'failed' by git else echo "✨ Versions already in sync for $TAG." fi diff --git a/scripts/sync-versions.ts b/scripts/sync-versions.ts index 260254f..129206d 100644 --- a/scripts/sync-versions.ts +++ b/scripts/sync-versions.ts @@ -116,7 +116,6 @@ if (fs.existsSync(appsDir)) { } // Update .env files -updateEnv(".env"); updateEnv(".env.example"); console.log("✨ All versions synced!");