Files
log-lottery/.husky/pre-push
2025-12-10 00:10:33 +08:00

12 lines
307 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
# 获取最新的 tag
TAG=$(git describe --tags --abbrev=0 2>/dev/null)
if [ $? -eq 0 ]; then
echo "🏷️ 检查最新的 tag: $TAG"
node .husky/scripts/verifyTagVersion.js $TAG
else
echo "⚠️ 没有找到任何 tag跳过版本校验"
fi