release

GitHub

该技能用于执行 npm 包的版本发布流程,包括检查工作区状态、确定版本号类型、更新包文件、发布至 npm 以及推送 Git 标签到 GitHub。

.claude/skills/release/SKILL.md qingchencloud/cj2api

Trigger Scenarios

用户要求发布新版本 执行 npm publish 操作 询问如何发版

Install

npx skills add qingchencloud/cj2api --skill release -g -y
More Options

Non-standard path

npx skills add https://github.com/qingchencloud/cj2api/tree/main/.claude/skills/release -g -y

Use without installing

npx skills use qingchencloud/cj2api@release

指定 Agent (Claude Code)

npx skills add qingchencloud/cj2api --skill release -a claude-code -g -y

安装 repo 全部 skill

npx skills add qingchencloud/cj2api --all -g -y

预览 repo 内 skill

npx skills add qingchencloud/cj2api --list

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。

流程

  1. 确认当前工作区干净(无未提交变更)
  2. 询问版本号类型:patch / minor / major
  3. 执行 npm version <type> 自动更新 package.json 并创建 git tag
  4. 执行 npm publish 发布到 npm
  5. 执行 git push && git push --tags 推送代码和标签到 GitHub
  6. 输出发布摘要:版本号、npm 地址、GitHub tag 地址

注意事项

  • npm 包名为 @qingchencloud/cj2api,scoped public 包
  • 发布前确保 npm whoami 已登录且属于 @qingchencloud 组织
  • 如果有 TypeScript 编译错误,先修复再发版

Version History

  • c831e14 Current 2026-07-19 09:01

Same Skill Collection

.agents/skills/deploy/SKILL.md
.agents/skills/release/SKILL.md
.agents/skills/update-page/SKILL.md
.claude/skills/deploy/SKILL.md
.claude/skills/update-page/SKILL.md

Metadata

Files
0
Version
c831e14
Hash
d03d844d
Indexed
2026-07-19 09:01

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-04 05:01
浙ICP备14020137号-1 $Гость$