From 75b056ba64ecf2254dc23981885fc3fc716fbdae Mon Sep 17 00:00:00 2001 From: rendianmeng Date: Fri, 31 Jul 2026 18:16:53 +0800 Subject: [PATCH] feat: win bl update exe file test --- .github/workflows/publish.yml | 4 ++-- docs/agents/publish.md | 15 +++++++++------ 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5913687..df2f559 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 diff --git a/docs/agents/publish.md b/docs/agents/publish.md index 2cdc71d..f476d1e 100644 --- a/docs/agents/publish.md +++ b/docs/agents/publish.md @@ -26,17 +26,20 @@ publish-stable.mjs / publish-channel.mjs ← 唯一发版入口 两种模式: -| 模式 | 用途 | 触发方式 | -| ------- | -------------------------------------------------------- | -------------------------------------------------- | -| channel | npm dist-tag + GitHub prerelease + 滚动 `channel-` | 选 mode=channel,填 dist-tag 名称(如 mcp/plugin) | -| stable | npm latest + GitHub Release `v`(含 install 脚本) | 选 mode=stable,需 production environment 审批 | +| 模式 | 用途 | 触发方式 | +| ------- | -------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | +| channel | npm dist-tag + GitHub prerelease + 滚动 `channel-` | 选 mode=channel,填 channel 名。**仅 `bailian-cli` 二进制安装验证**用 `sync-release`;`knowledge-studio-cli` 与 mcp/plugin 等仍按各自 dist-tag 名填写 | +| stable | npm latest + GitHub Release `v`(含 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--` → 临时 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--` → 临时 bump → 自检 → **npm 发到 dist-tag** → **Bun 编二进制并创建 GitHub prerelease + 滚动 `{channel}.json`** → 还原 package.json 3. 对应脚本:`tools/release/publish-channel.mjs` ### stable 发布