Repository navigation
ci: publish npm only for a tag a person chooses - #181
Merged
Merged
Conversation
A v* tag still builds the GitHub Release. npm publish no longer starts from that push. Co-authored-by: Cursor <cursoragent@cursor.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.
Summary
推送
v*标签不再自动把包装上 npm。标签推送仍然构建 macOS 安装包并创建 GitHub Release。要发表 npm 时,在 Actions 里手动运行 Publish npm,填一个已经有 GitHub Release 的标签。Refs #180
验收标准
release.yml的标签推送路径里没有npm publish。v*、或版本和Cargo.toml不一致时,工作流里的检查会失败。没有对应 GitHub Release 时,gh release download会失败。NPM_TOKEN且上述检查通过时,按 arm64、x64、wrapper 的顺序发表到registry.npmjs.org。这次没有真的发表。packaging/npm/README.md和AGENTS.md的发版说明与这条路径一致。证据(Validation)
没有跑
cargo test --workspace:这次没有改 Rust 产品代码。没有跑这个新工作流,也没有对 npm 发表任何版本。风险与安全边界(Risk/Safety Boundaries)
只改 GitHub Actions 的触发方式、发版说明和发表前的版本检查。不改版本号,不改
NPM_TOKEN的权限,不在这次发表任何包。标签推送仍会创建公开的 GitHub Release。未验证项(Known Limitations)
手动工作流还没有对一个真实标签跑过。
NPM_TOKEN缺失、Release 不存在、以及 npm 上已有同一版本时的失败,是工作流里的分支,这次没有在 Actions 里执行。下一步:等独立 QA 对当前 head 给出可合并结论。
Made with Cursor