Files
cozsweet-frontend-nextjs/.githooks/pre-push
T

11 lines
272 B
Bash
Executable File

#!/bin/sh
# Pre-push hook: push 前执行 Web 预发布脚本。
set -eu
REPO_TOPLEVEL="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
cd "$REPO_TOPLEVEL"
echo "=== pre-push: running scripts/release/pre_release_web.sh ==="
bash scripts/release/pre_release_web.sh