@yhong91/cpac 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -218,7 +218,7 @@ npm run pack:check
218
218
 
219
219
  ## npm 发布
220
220
 
221
- `.github/workflows/publish.yml` 在推送 `v*` tag 或手动触发时执行测试、类型检查、构建并发布到 npm。tag 发布会校验 tag 必须等于 `v` 加 `package.json` 的版本,例如 `v0.1.0`。
221
+ `.github/workflows/publish.yml` 在推送到 `main` 或手动触发时执行测试、类型检查、构建并发布到 npm。发布前会确认 `package.json` 中的版本尚未存在;因此每次计划发布的 push 都必须先提升版本。普通 PR 仅运行 CI。
222
222
 
223
223
  首次发布前:
224
224
 
@@ -230,8 +230,12 @@ npm run pack:check
230
230
  正常发布新版本:
231
231
 
232
232
  ```bash
233
- npm version patch # 或 minor / major
234
- git push --follow-tags
233
+ npm version patch --no-git-tag-version # 或 minor / major
234
+ git add package.json package-lock.json
235
+ git commit -m 'Release 0.1.1'
236
+ git push
235
237
  ```
236
238
 
239
+ 也可以手工修改并提交两个版本文件。push 到 `main` 后 Action 自动发布;若忘记提升版本,发布 workflow 会明确失败,不会覆盖 npm 已发布版本。
240
+
237
241
  仓库当前为 private,因此 npm Trusted Publishing 可以使用,但 npm 不会为发布包生成 provenance。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yhong91/cpac",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Connect Codex and Claude Code to a remote CLIProxyAPI gateway",
5
5
  "type": "module",
6
6
  "bin": {