Agent Skills
› qingchencloud/cj2api
› release
release
GitHub用于将 @qingchencloud/cj2api 发布到 npm 并推送至 GitHub。流程包括检查工作区状态、询问版本类型、执行版本升级与发布、推送代码及标签,最后输出摘要。
触发场景
用户要求发布新版本
用户提及 bump 版本号
用户请求 npm publish
安装
npx skills add qingchencloud/cj2api --skill release -g -y
SKILL.md
Frontmatter
{
"name": "release",
"license": "MIT",
"metadata": {
"tags": [
"npm",
"release",
"publish"
],
"author": "QingChen Cloud",
"version": "1.0.0"
},
"description": "版本发布:bump 版本号 → npm publish → git tag → push"
}
发版 Release
发布新版本到 npm 并推送到 GitHub。
流程
- 确认当前工作区干净(无未提交变更)
- 询问版本号类型:patch / minor / major
- 执行
npm version <type>自动更新 package.json 并创建 git tag - 执行
npm publish发布到 npm - 执行
git push && git push --tags推送代码和标签到 GitHub - 输出发布摘要:版本号、npm 地址、GitHub tag 地址
注意事项
- npm 包名为
@qingchencloud/cj2api,scoped public 包 - 发布前确保
npm whoami已登录且属于@qingchencloud组织 - 如果有 TypeScript 编译错误,先修复再发版
版本历史
- c831e14 当前 2026-07-19 09:01


