Commit f367dae
ci: fix npm publish via OIDC trusted publishing
The npm CLI bundled with Node 22.x (10.9.x) does not support OIDC
trusted-publisher auth at the npm registry; that landed in npm 11.5.1.
This caused the publish job for pcloud-kit@0.1.1 to sign provenance
successfully but get a masked 404 on PUT to the registry.
- Bump actions/setup-node to v6.
- Install npm@~11.10.0 globally on the runner before publishing
(pinned to avoid the self-upgrade bug on Node 22.22.2 — see
npm/cli#9151).
- Switch the publish step from `pnpm publish` to `npm publish` to
go through npm CLI's OIDC code path directly. Drop pnpm-only
`--no-git-checks` flag.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 558d05d commit f367dae
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
| |||
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
55 | | - | |
| 58 | + | |
0 commit comments