@kepoai/cli 0.0.11 → 0.0.13
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.
- package/README.md +22 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -46,3 +46,25 @@ The CLI binary will be automatically downloaded from our release server during i
|
|
|
46
46
|
- (可选)`R1_PREFIX`(默认 `kepo-cli`)
|
|
47
47
|
|
|
48
48
|
如需仅发布 npm、跳过上传,可临时设置 `SKIP_R1_UPLOAD=1`。
|
|
49
|
+
|
|
50
|
+
## One-Shot Release
|
|
51
|
+
|
|
52
|
+
仓库根目录提供了一键发布脚本 `release.sh`,会串行执行:
|
|
53
|
+
|
|
54
|
+
1. 可选写入 `npm/package.json` 版本号
|
|
55
|
+
2. 可选执行 `go test ./...`
|
|
56
|
+
3. 执行 `npm publish`(自动触发 prepublish 构建与上传)
|
|
57
|
+
4. 发布后校验 npm 最新版本
|
|
58
|
+
|
|
59
|
+
常用命令:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
# 正式发布(会执行测试)
|
|
63
|
+
./release.sh --version 0.0.12
|
|
64
|
+
|
|
65
|
+
# 正式发布但跳过 R1 上传
|
|
66
|
+
./release.sh --version 0.0.12 --skip-upload
|
|
67
|
+
|
|
68
|
+
# 仅演练,不实际发布
|
|
69
|
+
./release.sh --dry-run --skip-upload
|
|
70
|
+
```
|
package/package.json
CHANGED