feat: 添加依赖安装后工作区变更检测及错误提示

This commit is contained in:
Lyda
2025-10-13 11:32:28 +08:00
parent fb2505d379
commit 5aee9b954e

View File

@@ -170,7 +170,14 @@ runs:
rm -rf .pnpm-store || true
fi
echo "🧾 git status --short"
git status --short || true
CHANGES=$(git status --short || true)
if [[ -n "$CHANGES" ]]; then
echo "$CHANGES"
echo "❌ 安装依赖后检测到工作区存在未提交变更。请检查上述文件,必要时更新配置或在调用前设置 PNPM_STORE_DIR。" >&2
exit 1
else
echo "✅ 工作区保持干净"
fi
- name: 总结
shell: bash