ci: 自动 release 工作流(测试门禁 + npm 发布 + GitHub Release) #14
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
weisanju/pi-plugins!14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ci/auto-release-workflow"
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?
Summary
.github/workflows/release.yml:推送版本 tag 后自动执行完整发布流水线 —— tag 格式与package.json版本一致性校验 →tsc类型检查 +bun test质量门禁 → 构建 →npm publish --provenance→ 自动创建 GitHub Release(--generate-notes自动生成变更说明)pi-model-auto-router/vX.Y.Z(斜杠式)与pi-model-auto-router-vX.Y.Z(连字符式)——旧 publish.yml 只匹配斜杠式,0.2.1/0.3.1 的连字符式 tag 从未触发过 CIpublish.yml:功能已完全包含在 release.yml 中,保留会在同一 tag 触发两次 npm publish(第二次必然失败);且新工作流补上了发布前不跑测试的缺口Test plan
pi-model-auto-router/v0.4.0tag 实测完整流水线(需NPM_TOKENsecret 已配置)发版流程(合并后)