@springbrand/cli 0.1.1-alpha.3 → 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.
- package/README.md +21 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -37,6 +37,27 @@ npm run publish:alpha
|
|
|
37
37
|
发布后用 `npm view @springbrand/cli@alpha version` 验证。发布新版后还要同步 Gateway 的
|
|
38
38
|
`CLI_LATEST_VERSION`。
|
|
39
39
|
|
|
40
|
+
## 发布稳定版
|
|
41
|
+
|
|
42
|
+
稳定版打 `latest` tag。当前版本是 `x.y.z-alpha.N` 时收成同号 `x.y.z`;当前已是 `x.y.z` 时递增 patch。先预览:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
cd cli
|
|
46
|
+
npm ci
|
|
47
|
+
npm run publish:stable -- --dry-run
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
确认包内容后发布:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
npm whoami
|
|
54
|
+
npm run publish:stable
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
仓库根目录对应命令是 `pnpm publish:stable`。脚本会先运行 `npm test`,再改版本并同步
|
|
58
|
+
`package-lock.json`,打一个临时 tarball 后执行 `npm publish <tarball> --tag latest`。它不会自动提交、打 tag 或 push。
|
|
59
|
+
发布后用 `npm view @springbrand/cli version` 验证,并把 Gateway `wrangler.jsonc` 里的 `CLI_LATEST_VERSION` 改成这个版本。
|
|
60
|
+
|
|
40
61
|
## 命令
|
|
41
62
|
|
|
42
63
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@springbrand/cli",
|
|
3
|
-
"version": "0.1.1
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "SpringBrand CLI — connect MCP hosts to the SpringBrand Gateway",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"scripts": {
|
|
18
18
|
"build": "tsc",
|
|
19
19
|
"prepublishOnly": "npm run build",
|
|
20
|
-
"publish:alpha": "node scripts/publish
|
|
20
|
+
"publish:alpha": "node scripts/publish.mjs alpha",
|
|
21
|
+
"publish:stable": "node scripts/publish.mjs stable",
|
|
21
22
|
"dev": "tsc --watch",
|
|
22
23
|
"test": "npm run build && vitest run",
|
|
23
24
|
"test:unit": "vitest run test/mcp-json-config.test.ts test/branding.test.ts",
|