SuperAPI AI 工具集

release-workflow

办公与效率

查看项目

更新于 10-15 21:53

技能介绍

用途:在准备或执行 glean-claude-plugins 市场发布时使用,触发词包括 release、bump version、publish、npm run release 等。

主要能力与流程:按顺序执行以下步骤,不可跳过。

预检:第一步核对所有插件版本是否同步,遍历 plugins/*/.claude-plugin/plugin.json 读取 version,所有版本必须与 .claude-plugin/marketplace.json 中的当前市场版本一致;若不同步,先修复并单独提交。第二步运行 node scripts/validate-plugins.mjs 校验插件结构,全部通过后再继续。第三步运行 git status,确认工作区干净(nothing to commit, working tree clean)。

执行发布:第四步运行 npm run release。该命令会提示选择下一个版本(patch/minor/major),通过 bumper 更新 package.json、.claude-plugin/marketplace.json 以及所有 plugins/*/.claude-plugin/plugin.json,依据 conventional commits 生成或更新 CHANGELOG.md,创建 git 标签 v<version>,并以 chore: release v<version> 提交。

发布后:第五步再次遍历插件 plugin.json 核对版本,10 个插件应显示新版本号。第六步运行 git push && git push --tags 推送提交与标签。

覆盖的插件:glean-core、glean-search、glean-people、glean-meetings、glean-docs、glean-code、glean-dev-docs、glean-skills、glean-productivity、glean-project,由 bumper 自动升版。

限制与注意:新增插件时必须将其 plugin.json 路径加入 .release-it.json 中 @release-it/bumper 的 out 数组,否则下次发布时其版本会静默漂移。资料未提供其他平台、收费或效果信息。