chore(release): release.sh 打 tag 触发发布,与 bump.ts 对齐#12
Merged
Conversation
之前 release.sh 只做「建分支 + bump + commit」,缺打 tag。发布的唯一触发器 是 cli-v* tag 推送,导致 0.1.9 bump 并合入 master 后仍未发包。 - 在 bump 提交上打 annotated tag:cli → cli-v<v>,插件 → v<v> - --push 改用 git push --follow-tags,分支 + tag 一起推,自动触发 release workflow - 前置增查 tag 重名;提示文案明确 tag 触发发布、PR 合 master 仅同步主干 纳入版本控制(此前为未跟踪文件)。 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
背景
0.1.9 已 bump(
f2f93d9 cli-0.1.9)并经 PR #11 合入 master,但 npm 一直停在 0.1.8 —— 因为release.sh只做「建分支 + bump + commit」,没打 tag,而发布的唯一触发器是cli-v*tag 推送(release-cli.yml)。0.1.9 已通过手动补cli-v0.1.9tag 发布;本 PR 修脚本,避免再漏。改动
把
scripts/bump.ts的打 tag 步骤折进release.sh,使其端到端:cli-v<版本>,插件 →v<版本>--push改用git push --follow-tags,分支 + tag 一起推 → 自动触发发布 workflowrelease.sh纳入版本控制(此前为未跟踪文件)用法
./release.sh patch --push # 建分支 + bump + commit + tag + push,CI 自动发包🤖 Generated with Claude Code