mirror of
https://github.com/modelstudioai/cli.git
synced 2026-09-14 19:49:23 +08:00
feat: win bl update exe file test
This commit is contained in:
@@ -18,7 +18,7 @@ on:
|
||||
- channel
|
||||
- stable
|
||||
channel:
|
||||
description: "Required when mode=channel. dist-tag name, e.g. mcp / plugin / release-test (lowercase, digits, dashes)"
|
||||
description: "Required when mode=channel. dist-tag / rolling manifest name (lowercase, digits, dashes). bailian-cli binary install verify: sync-release; knowledge-studio-cli / other tags: mcp, plugin, etc."
|
||||
required: false
|
||||
type: string
|
||||
|
||||
@@ -93,7 +93,7 @@ jobs:
|
||||
- name: Require channel input
|
||||
if: ${{ inputs.channel == '' }}
|
||||
run: |
|
||||
echo "::error::mode=channel requires the workflow input \"channel\" (e.g. mcp, plugin, release-test). Leave mode=stable if you do not need a dist-tag."
|
||||
echo "::error::mode=channel requires the workflow input \"channel\" (bailian-cli install verify: sync-release; knowledge-studio-cli / others: e.g. mcp, plugin). Leave mode=stable if you do not need a dist-tag."
|
||||
exit 1
|
||||
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
@@ -26,17 +26,20 @@ publish-stable.mjs / publish-channel.mjs ← 唯一发版入口
|
||||
|
||||
两种模式:
|
||||
|
||||
| 模式 | 用途 | 触发方式 |
|
||||
| ------- | -------------------------------------------------------- | -------------------------------------------------- |
|
||||
| channel | npm dist-tag + GitHub prerelease + 滚动 `channel-<name>` | 选 mode=channel,填 dist-tag 名称(如 mcp/plugin) |
|
||||
| stable | npm latest + GitHub Release `v<ver>`(含 install 脚本) | 选 mode=stable,需 production environment 审批 |
|
||||
| 模式 | 用途 | 触发方式 |
|
||||
| ------- | -------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| channel | npm dist-tag + GitHub prerelease + 滚动 `channel-<name>` | 选 mode=channel,填 channel 名。**仅 `bailian-cli` 二进制安装验证**用 `sync-release`;`knowledge-studio-cli` 与 mcp/plugin 等仍按各自 dist-tag 名填写 |
|
||||
| stable | npm latest + GitHub Release `v<ver>`(含 install 脚本) | 选 mode=stable,需 production environment 审批 |
|
||||
|
||||
可选 flag:`--skip-binary`(仅发 npm,紧急逃生)。
|
||||
|
||||
### channel 发布
|
||||
|
||||
1. 在 GitHub 触发 Publish workflow,package 选 `bailian-cli` 或 `knowledge-studio-cli`,mode 选 `channel`,channel 填 dist-tag 名(如 `mcp`)
|
||||
2. CI 自动:生成 `0.0.0-beta-<sha7>-<date>` → 临时 bump → 自检 → **npm 发到 dist-tag** → **Bun 编二进制并创建 GitHub prerelease + 滚动 channel manifest** → 还原 package.json
|
||||
1. 在 GitHub 触发 Publish workflow,package 选目标包,mode 选 `channel`,channel 填名称:
|
||||
- **`bailian-cli` 二进制安装验证**:填 `sync-release`(更新 CDN `sync-release.json`;本机 `BAILIAN_CHANNEL=sync-release` / `install.sh --channel sync-release`)。填什么就写什么 `{channel}.json`;发 `release-test` **不会**更新 `sync-release.json`
|
||||
- **`knowledge-studio-cli`**:不要用 `sync-release`(那是 `bl` 安装脚本/CDN 约定);按 npm dist-tag 需要填 `mcp` / `plugin` 等即可,行为与改文档前一致
|
||||
- 其它 npm dist-tag(任一 package):填 `mcp` / `plugin` 等
|
||||
2. CI 自动:生成 `0.0.0-beta-<sha7>-<date>` → 临时 bump → 自检 → **npm 发到 dist-tag** → **Bun 编二进制并创建 GitHub prerelease + 滚动 `{channel}.json`** → 还原 package.json
|
||||
3. 对应脚本:`tools/release/publish-channel.mjs`
|
||||
|
||||
### stable 发布
|
||||
|
||||
Reference in New Issue
Block a user