feat(release): 自动准备版本 PR 并支持手动发布 - #4
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
将版本准备与正式发布拆成两个手动入口,功能合入主分支后可以独立安排发布。
Prepare Release从固定的master提交创建release/<版本>分支、更新版本号并提交发布 PR;支持相同请求重跑,拒绝版本倒退、已有标签和冲突分支。Publish在版本 PR 合并后读取源码版本,对同一提交执行完整 Check 和五平台产物验收,随后创建附注标签、上传并核对草稿资产,再公开 Release。Release Verify保留分支和手动演练入口,正式发布复用其构建流程;标签由发布流程生成,推送标签不再触发发布。发布流程拒绝覆盖指向其他提交的标签或已经公开的版本,GitHub 查询失败时停止;主分支后续更新不影响已锁定的发布提交。
验证:本地完整回归 159 项通过、5 项平台相关测试跳过;添加许可证后,28 项发布相关测试通过。类型检查、actionlint 和许可证元数据检查通过。Git 分支与标签测试使用临时本地仓库,未执行真实发布。
最终提交
a7fc29f的远程验证均通过:分支 Check、PR Check、五平台发布演练。Git 集成测试使用独立的 30 秒执行时限,覆盖 Windows runner 的进程启动耗时。