Commit d31368a
fix(ci): pin pnpm to v10 and approve builds via onlyBuiltDependencies
CI's `pnpm/action-setup version: latest` floated onto pnpm 11, which
hard-fails `pnpm install --frozen-lockfile` with ERR_PNPM_IGNORED_BUILDS
on unapproved native build scripts (esbuild). pnpm 11 also ignores the
documented v10 `onlyBuiltDependencies` key (it renames it to `allowBuilds`),
so the prior `allowBuilds` workaround was inert on v10 and the approval
mechanism is version-dependent.
- Pin pnpm/action-setup@v6 with version: 10 in all jobs (was @v4 latest)
- Replace non-standard allowBuilds with documented onlyBuiltDependencies
(esbuild, sharp) in app/pnpm-workspace.yaml
- Bump checkout@v7, setup-node@v6, upload-artifact@v7 (clears the Node 20
deprecation warning)
Verified locally on pnpm 10.15.1: frozen install exits 0 and runs esbuild's
build script; lockfile unchanged (frozen-lockfile stays valid). Reproduced
the original ERR_PNPM_IGNORED_BUILDS failure on pnpm 11.9.0.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent cfbb186 commit d31368a
2 files changed
Lines changed: 30 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
| 34 | + | |
| 35 | + | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | | - | |
| 50 | + | |
| 51 | + | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
| 73 | + | |
| 74 | + | |
75 | 75 | | |
76 | | - | |
77 | | - | |
| 76 | + | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments