Commit 5e09bfc
authored
publish: use npx npm@11 to bypass PATH-shadowing for npm publish (#179)
`npm install -g npm@latest` installs into a path that the GitHub
runner doesn't put first in PATH, so subsequent `npm publish` still
runs the Node-bundled npm 10.x. OIDC trusted publishing requires
npm >= 11.5.1, so we ENEEDAUTH'd silently.
Fix: invoke npm via `npx -y npm@11 publish --access public`. npx
bypasses PATH and runs the exact pinned version. Also echo node +
npm versions for future diagnosis.
v3.8.3 PyPI shipped fine; npm failed with this exact ENEEDAUTH and
was yanked manually.1 parent 392f468 commit 5e09bfc
1 file changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | 226 | | |
230 | 227 | | |
231 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
0 commit comments