chore(构建): Bun 锁到 1.4.4,CI 和镜像不再跟 latest;后端类型检查换成 bun check

单二进制把运行时一起打进去,CI 装的是几线上就是几,之前三处都不锁(@types/bun latest、
setup-bun latest、oven/bun:1),1.4.x 每版都有破坏性变更会悄悄上线。
顺带 bunfig 加 minimumReleaseAge = "3d",@types/bun 除外。
后端 typecheck 从 tsc 换成 bun check,1.9s → 0.26s,报错一致。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
xuyueandClaude Opus 5.5 committed 2026-10-23 09:13:21 +08:00
1 parent b3f5ed41ae
commit eb0309ae35
7 files changed
+72 -58

No files matched your search

+3 -1
View File
@@ -53,9 +53,11 @@ jobs:
steps:
- uses: actions/checkout@v7
# 版本跟着 package.json 的 packageManager 走。单二进制会把运行时一起打进去,
# 这里装的是哪个版本,线上跑的就是哪个版本 —— 不能是 latest。
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
bun-version-file: package.json
# 依赖装到 ~/.bun/install/cache,命中的话 install 只剩几秒。
# v6 起跑在 node24 上(v4 还是 node20,GitHub 正在退役 node20 runtime),