fix(ci): 修复 tag 触发时 production deploy 被 skipped 的问题 #1625
Reference in New Issue
Block a user
Delete Branch "fix/ci-production-deploy-skip"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题
tag v0.1.131 推送后 CI Run #44774 全部 success,但 Deploy Production 实际被 skipped,生产容器仍是 v0.1.130。
根因
check-frontend-only只在 PR 事件运行(if: github.event_name == pull_request),tag 触发时被 skipped →frontend-lint因 needs 依赖被 skipped →build-productionneeds 中有 skipped job 导致也被 skipped →deploy-production同理被 skipped。修复
build-production的 needs 中移除frontend-lint(前端 lint 不是生产构建的必要条件)!failure() && !cancelled()确保其他 needs 中被 skipped 的 job 不阻塞生产部署🚀 预览环境已部署
代码审查结果 - PR #1625
⚠️ 问题(1个需要修改)
frontend-lint依赖项,可能导致代码质量检查被绕过。needs列表中移除了frontend-lint,同时新增了!failure()判断条件。这意味着当前作业将不再等待frontend-lint完成,且其执行状态不再受frontend-lint成败的影响。frontend-lint是质量门禁的一部分,必须将其加回needs列表,否则存在发布劣质代码的风险。💡 建议(0个可选)
✅ 格式检查通过 | ❌ 逻辑审查需修改 | ✅ 建议关注性能
🤖 由 AI 代码审查机器人自动生成 | 2026-09-02 05:00:51 | 模型:
🗑️ 预览环境已清理
PR #1625 已关闭或合并,对应的预览环境已被清理。