Repository navigation
Commit 6bfbb82
authored
feat!: install pnpm v12 as a standalone native executable (#11)
* feat!: install pnpm v12 as a standalone native executable
Since v12, pnpm is a Rust rewrite shipped as a native executable that
needs neither Node.js nor npm. The action now resolves the requested
version (exact, semver range, or dist-tag) against the npm registry,
downloads the @pnpm/exe.<os>-<arch> tarball for the runner's platform,
verifies its sha512 integrity, and places the pnpm binary (plus the
pnpx, pn, and pnx aliases) directly into dest.
This removes the whole npm-based bootstrap: the committed exe-lock.json,
the update-bootstrap script, the npm ci step, the node-on-PATH hack, the
Windows .bin shim workarounds, and the pnpm self-update step.
Versions below 12 are rejected with a pointer to pnpm/action-setup.
Adjustments for the Rust CLI:
- 'pnpm store path' no longer accepts --silent
- $PNPM_HOME/bin is created upfront: 'pnpm runtime set -g' fails with
ERR_PNPM_PNPM_DIR_NOT_WRITABLE when it is missing
- the --no-runtime version probe is gone (always supported in v12)
* chore: update pnpm to v12.0.0-alpha.18
The new release includes the pacquet parity fixes from pnpm/pnpm#13194:
runtime set -g now creates a missing global bin dir, and the --silent
shorthand is accepted again. The upfront dest/bin creation stays for
users pinning alpha.17 or older.
* chore: retrigger CI
* fix: address code scanning and review findings
- add a least-privilege permissions block to the test workflow (CodeQL:
workflow does not limit GITHUB_TOKEN permissions)
- use replaceAll when encoding the scoped package name for the registry
URL (CodeQL: replace only rewrites the first occurrence)
- extract only the pnpm binary entry from the downloaded tarball instead
of the whole archive, and fail with an actionable message when no tar
executable is on PATH (self-hosted minimal runners)
* chore: update pnpm to v12.0.0-alpha.19
Includes the fresh-install --no-runtime fix (pnpm/pnpm#13225), which
unblocks the devEngines test jobs that install without a lockfile.1 parent 77cf068 commit 6bfbb82
16 files changed
Lines changed: 549 additions & 734 deletions
File tree
- .github/workflows
- dist
- scripts
- src
- cache-restore
- install-pnpm
- bootstrap
- install-runtime
- pnpm-install
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
12 | | - | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
21 | 26 | | |
22 | | - | |
| 27 | + | |
23 | 28 | | |
24 | | - | |
| 29 | + | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
| |||
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
54 | 108 | | |
55 | 109 | | |
56 | 110 | | |
| |||
73 | 127 | | |
74 | 128 | | |
75 | 129 | | |
76 | | - | |
| 130 | + | |
77 | 131 | | |
78 | 132 | | |
79 | 133 | | |
| |||
114 | 168 | | |
115 | 169 | | |
116 | 170 | | |
117 | | - | |
| 171 | + | |
118 | 172 | | |
119 | 173 | | |
120 | 174 | | |
| |||
130 | 184 | | |
131 | 185 | | |
132 | 186 | | |
133 | | - | |
| 187 | + | |
134 | 188 | | |
135 | 189 | | |
136 | 190 | | |
| |||
155 | 209 | | |
156 | 210 | | |
157 | 211 | | |
158 | | - | |
| 212 | + | |
159 | 213 | | |
160 | 214 | | |
161 | 215 | | |
| |||
201 | 255 | | |
202 | 256 | | |
203 | 257 | | |
204 | | - | |
| 258 | + | |
205 | 259 | | |
206 | 260 | | |
207 | 261 | | |
| |||
212 | 266 | | |
213 | 267 | | |
214 | 268 | | |
215 | | - | |
| 269 | + | |
216 | 270 | | |
217 | 271 | | |
218 | 272 | | |
| |||
257 | 311 | | |
258 | 312 | | |
259 | 313 | | |
260 | | - | |
| 314 | + | |
261 | 315 | | |
262 | 316 | | |
263 | 317 | | |
| |||
294 | 348 | | |
295 | 349 | | |
296 | 350 | | |
297 | | - | |
| 351 | + | |
298 | 352 | | |
299 | 353 | | |
300 | 354 | | |
| |||
304 | 358 | | |
305 | 359 | | |
306 | 360 | | |
307 | | - | |
| 361 | + | |
308 | 362 | | |
309 | 363 | | |
310 | 364 | | |
| |||
331 | 385 | | |
332 | 386 | | |
333 | 387 | | |
334 | | - | |
| 388 | + | |
335 | 389 | | |
336 | 390 | | |
337 | 391 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
13 | | - | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
37 | | - | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
104 | 107 | | |
105 | 108 | | |
106 | 109 | | |
107 | | - | |
108 | | - | |
| 110 | + | |
| 111 | + | |
109 | 112 | | |
110 | | - | |
| 113 | + | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
9 | 16 | | |
10 | 17 | | |
11 | 18 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | | - | |
18 | | - | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
3 | 6 | | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments