Skip to content

Commit 57ba6b2

Browse files
7418claude
andcommitted
docs: update CLAUDE.md with CI auto-release workflow
Clarify that pushing a v* tag triggers CI to automatically build all platforms and create the GitHub Release. Do not manually create releases to avoid conflicts. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8c6e7bb commit 57ba6b2

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

CLAUDE.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,20 @@ CodePilot — Claude Code 的原生桌面 GUI 客户端,基于 Electron + Next
66

77
## Release Checklist
88

9-
**发版前必须更新版本号**
9+
**发版流程(CI 自动打包 + 发布)**
1010

11-
1. `package.json` 中的 `"version"` 字段
11+
1. `package.json` 中的 `"version"` 字段更新为新版本号
1212
2. `package-lock.json` 中的对应版本(运行 `npm install` 会自动同步)
13-
3. 构建命令:`npm run electron:pack:mac`(macOS)/ `npm run electron:pack:win`(Windows)
14-
4. 上传产物到 GitHub Release 并编写 release notes(格式见下方 Release Notes 规范)
13+
3. 提交代码并推送到 `main` 分支
14+
4. 创建并推送 tag:`git tag v{版本号} && git push origin v{版本号}`
15+
5. **推送 tag 后 CI 会自动触发**`.github/workflows/build.yml`):
16+
- 自动在 macOS / Windows / Linux 上构建
17+
- 自动收集所有平台产物(DMG、exe、AppImage、deb、rpm)
18+
- 自动创建 GitHub Release 并上传所有产物
19+
6. 等待 CI 完成,在 GitHub Release 页面补充 New Features / Bug Fixes 描述
20+
7. 可通过 `gh run list` 查看 CI 状态,`gh run rerun <id> --failed` 重试失败的任务
21+
22+
**重要:不要手动创建 GitHub Release**,否则会与 CI 自动创建的 Release 冲突。如果需要本地打包测试,使用 `npm run electron:pack:mac` 但不要手动上传到 Release。
1523

1624
## Development Rules
1725

0 commit comments

Comments
 (0)