Skip to content

Commit be3033b

Browse files
committed
feat: win bl update exe file test
1 parent 8ad3e7b commit be3033b

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

docs/agents/publish.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ workflow 的 `channel` 输入**只决定 npm dist-tag**(如 `mcp` / `plugin` /
4747
1. 在 GitHub 触发 Publish workflow,mode 选 `channel`,channel 填 npm dist-tag 名:
4848
- **`bailian-cli`**:npm 发到该 tag;二进制同时刷新 CDN `sync-release.json`(与 tag 名无关)。本机验证:`BAILIAN_CHANNEL=sync-release`
4949
- **`knowledge-studio-cli`**:仅 npm(自动跳过 binary,不碰 `sync-release.json`
50-
2. CI 自动:生成 `0.0.0-beta-<sha7>-<date>` → 临时 bump → 自检 → **npm 发到 dist-tag** →(bailian-cli)**Bun 编二进制 + GH prerelease + 覆盖 `sync-release.json`** → 还原 package.json
50+
2. CI 自动:生成 `0.0.0-beta-<sha7>-<YYYYMMDDHHMM>`(UTC 到分钟;同 commit 同分钟重跑会覆盖同号)→ 临时 bump → 自检 → **npm 发到 dist-tag** →(bailian-cli)**Bun 编二进制 + GH prerelease + 覆盖 `sync-release.json`** → 还原 package.json
5151
3. 对应脚本:`tools/release/publish-channel.mjs`
5252

5353
### stable 发布

tools/release/lib/git.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export function pushTag(tag, remote = "origin") {
3434
run("git", ["push", remote, tag]);
3535
}
3636

37+
/** UTC stamp for channel beta versions: `YYYYMMDDHHMM` (minute resolution). */
3738
export function utcDateStamp() {
38-
const iso = runCapture("date", ["-u", "+%Y%m%d"]);
39-
return iso;
39+
return runCapture("date", ["-u", "+%Y%m%d%H%M"]);
4040
}

tools/release/publish-channel.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ function restoreOriginals() {
6060
try {
6161
step("compute channel version");
6262
const sha = headSha7();
63-
const date = utcDateStamp();
64-
const betaVersion = `0.0.0-beta-${sha}-${date}`;
63+
const stamp = utcDateStamp(); // YYYYMMDDHHMM (UTC)
64+
const betaVersion = `0.0.0-beta-${sha}-${stamp}`;
6565
log(`channel=${channel} version=${betaVersion}`);
6666

6767
step("temporarily bump package.json (not committed)");

0 commit comments

Comments
 (0)