Commit 451063a
committed
fix(ci): pin packageManager to a published bun version; consolidate to vp run tasks
Task 1: vp install --frozen-lockfile failed in CI with
"error: Package manager bun@1.4.0 not found on
https://registry.npmjs.org/@oven/bun-linux-x64/-/bun-linux-x64-1.4.0.tgz".
package.json's packageManager field pinned bun@1.4.0, a version that
does not exist on the npm registry mirror vp uses to fetch a pinned
package manager (latest published there is 1.3.14). The bun.lock
lockfileVersion (1) only requires bun >= 1.2, so pin packageManager to
bun@1.3.14 instead. Reproduced the exact failure locally with the same
vp 0.2.4 binary and confirmed the fix resolves it.
Task 2: collapse the two parallel invocation paths (package.json
scripts run via `bun run`, and a handful of vite.config.ts `tasks` that
just re-wrapped those scripts via `bun run`) into one entrypoint.
vite.config.ts `run.tasks` is now the single source of truth for all
17 project commands (typecheck, test, check, docs:dev/build/preview,
book:assemble, book:manifest, book:candidate:prepare/en/zh-TW/all/validate,
book:legacy:en/zh-TW/all/validate), each command copied verbatim from
the former package.json scripts. package.json's `scripts` block is
removed entirely (vp itself now rejects a task/script name collision,
confirming vp run tasks alone are sufficient in this pinned CI
environment). .github/workflows/main.yml now invokes every task
exclusively via `vp run <task>` (including bare `bun scripts/book/*.ts
<locale>` calls, replaced with matrix-driven `vp run
book:candidate:${{ matrix.locale }}` / `book:legacy:${{ matrix.locale
}}`). Task caching is disabled at the run level since these commands
depend on untracked env vars (BOOK_DATE, OUTPUT_ROOT, SOURCE_REVISION,
etc.) and must always execute, matching prior behavior exactly.
No changes to Docker/Pandoc/XeLaTeX legacy renderer internals, the
release-gating graph, or the EXPECTED_SOURCE_REVISION guard.1 parent b7544d9 commit 451063a
3 files changed
Lines changed: 29 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
| 168 | + | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
| 240 | + | |
241 | 241 | | |
242 | 242 | | |
243 | 243 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 4 | + | |
24 | 5 | | |
25 | 6 | | |
26 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
10 | 27 | | |
11 | 28 | | |
12 | 29 | | |
0 commit comments