Version release workflow — release process and GitHub Release notes (not docs/changelog pages).
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-version-release-ca2fda7f3bf8 ,按照其中的说明把「version-release」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
This skill is a router. The detailed steps live in references/.
This skill is only for:
auto-tag-release.yml)This skill is not for writing docs/changelog/*.mdx.
If the user asks for website changelog pages, load ../docs-changelog/SKILL.md.
For every /version-release execution, you MUST load and apply:
../../../DESIGN.md (Voice & Content)The primary development branch is canary. All day-to-day development happens on canary. When releasing, canary is merged into main. Conventional release PRs (🚀 release: …, release/*, hotfix/*) get a package.json bump commit from release-pr-version.yml while the PR is open. After merge, auto-tag-release.yml tags the merge commit and creates the GitHub Release. sync-main-to-canary runs on push to main.
Only two release types are used in practice (major releases are extremely rare and can be ignored):
| Type | Use Case | Frequency | Source Branch | PR Title Format | Version | Reference |
|---|---|---|---|---|---|---|
| Minor | Feature iteration release | ~Every 4 weeks | canary | 🚀 release: v{x.y.0} | Manually set | references/minor-release.md |
| Patch | Weekly release / hotfix / model / DB migration | ~Weekly or as needed | canary or main | Custom (e.g. 🚀 release: 20260222) | Auto patch +1 | references/patch-release-scenarios.md |
For writing the release-note body (any release type), see references/release-notes-style.md.
auto-tag-release.yml)After a PR is merged into main, CI determines whether to release based on the following priority:
PR title matches 🚀 release: v{x.y.z} -> uses the version number from the title.
Triggered by the following priority:
hotfix/* or release/* -> triggers directly (skips title detection)style / 💄 stylefeat / ✨ featfix / 🐛 fixrefactor / ♻️ refactorhotfix / 🐛 hotfix / 🩹 hotfixbuild / 👷 buildPRs that don't match any conditions above (e.g. docs, chore, ci, test) will not trigger a release when merged into main.
release-pr-version.yml) — if package.json is behind, commit 🔖 chore(release): release version v{x.y.z} to the PR head. Minor titles 🚀 release: v{x.y.z} use that version; weekly / release/* / hotfix/* use latest stable tag + patch.auto-tag-release.yml) — tag v{x.y.z} on the merge commit and create the GitHub Release. Patch version is latest stable tag +1, not package.json +1.sync-main-to-canary — runs on push to main.When the user requests a release:
Before creating the release branch, verify the source branch:
release/weekly-*): must branch from canarymain; run git merge-base --is-ancestor main <branch> && echo OKPick the right reference and follow it end-to-end:
references/minor-release.mdreferences/patch-release-scenarios.mdreferences/release-notes-style.mdpackage.json version — CI handles it.🚀 release: v{x.y.z}).git per references/release-notes-style.md § Computing Inputs — never from memory or descriptions.