release

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Release Skill

发布Skill

Automate the release process for oh-my-claudecode.
为oh-my-claudecode自动化发布流程。

Usage

使用方法

/oh-my-claudecode:release <version>
Example:
/oh-my-claudecode:release 2.4.0
or
/oh-my-claudecode:release patch
or
/oh-my-claudecode:release minor
/oh-my-claudecode:release <version>
示例:
/oh-my-claudecode:release 2.4.0
/oh-my-claudecode:release patch
/oh-my-claudecode:release minor

Release Checklist

发布检查清单

Execute these steps in order:
按顺序执行以下步骤:

1. Version Bump

1. 版本号升级

Update version in all locations:
  • package.json
  • src/installer/index.ts
    (VERSION constant)
  • src/__tests__/installer.test.ts
    (expected version)
  • .claude-plugin/plugin.json
  • README.md
    (version badge and title)
在所有位置更新版本号:
  • package.json
  • src/installer/index.ts
    (VERSION常量)
  • src/__tests__/installer.test.ts
    (预期版本)
  • .claude-plugin/plugin.json
  • README.md
    (版本徽章和标题)

2. Run Tests

2. 运行测试

bash
npm run test:run
All 231+ tests must pass before proceeding.
bash
npm run test:run
所有231+个测试必须通过才能继续。

3. Commit Version Bump

3. 提交版本号更新

bash
git add -A
git commit -m "chore: Bump version to <version>"
bash
git add -A
git commit -m "chore: Bump version to <version>"

4. Create & Push Tag

4. 创建并推送标签

bash
git tag v<version>
git push origin main
git push origin v<version>
bash
git tag v<version>
git push origin main
git push origin v<version>

5. Publish to npm

5. 发布到npm

bash
npm publish --access public
bash
npm publish --access public

6. Create GitHub Release

6. 创建GitHub Release

bash
gh release create v<version> --title "v<version> - <title>" --notes "<release notes>"
bash
gh release create v<version> --title "v<version> - <title>" --notes "<release notes>"

7. Verify

7. 验证

Version Files Reference

版本文件参考

FileField/Line
package.json
"version": "X.Y.Z"
src/installer/index.ts
export const VERSION = 'X.Y.Z'
src/__tests__/installer.test.ts
expect(VERSION).toBe('X.Y.Z')
.claude-plugin/plugin.json
"version": "X.Y.Z"
README.md
Title + version badge
文件字段/行
package.json
"version": "X.Y.Z"
src/installer/index.ts
export const VERSION = 'X.Y.Z'
src/__tests__/installer.test.ts
expect(VERSION).toBe('X.Y.Z')
.claude-plugin/plugin.json
"version": "X.Y.Z"
README.md
标题 + 版本徽章

Semantic Versioning

语义化版本控制

  • patch (X.Y.Z+1): Bug fixes, minor improvements
  • minor (X.Y+1.0): New features, backward compatible
  • major (X+1.0.0): Breaking changes
  • patch (X.Y.Z+1): Bug修复、小改进
  • minor (X.Y+1.0): 新功能、向后兼容
  • major (X+1.0.0): 破坏性变更

Notes

注意事项

  • Always run tests before publishing
  • Create release notes summarizing changes
  • Plugin marketplace syncs automatically from GitHub releases
  • 发布前务必运行测试
  • 创建总结变更的发布说明
  • 插件市场会从GitHub Releases自动同步