SkateSpots/.githooks/pre-push
SkateSpots 39c388a6d7 chore(ops): pre-push/pre-deploy test gate + patch-only deps fallback
- scripts/preflight.sh: app+server tsc, eslint, i18n, vitest; installed as
  .githooks/pre-push (scripts/install-hooks.sh) and run by auto-deploy before
  Netlify. Failures record preflight-failed and ops-health flags them.
- update-deps.sh: if the blanket npm update fails, restore the lock and retry
  patch-level packages one at a time, keeping those that pass a fast gate; the
  final npm test + smoke still gates the result, otherwise revert + 3-day retry.
- release.sh/deps set SKIP_PREFLIGHT=1 (they run the full npm test themselves).
2026-10-27 09:23:07 +07:00

6 lines
257 B
Bash
Executable file

#!/usr/bin/env bash
# Run the fast gate before every manual push. Skip with:
# SKIP_PREFLIGHT=1 git push (or git push --no-verify)
set -euo pipefail
[ "${SKIP_PREFLIGHT:-0}" = "1" ] && exit 0
exec "$(git rev-parse --show-toplevel)/scripts/preflight.sh"