Skip to content

Commit f367dae

Browse files
Belco90claude
andcommitted
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

File tree

.github/workflows/release-please.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,15 @@ jobs:
3636

3737
- uses: pnpm/action-setup@v4
3838

39-
- uses: actions/setup-node@v4
39+
- uses: actions/setup-node@v6
4040
with:
4141
node-version-file: .nvmrc
4242
registry-url: https://registry.npmjs.org
4343
cache: pnpm
4444

45+
- name: Upgrade npm for OIDC trusted publishing
46+
run: npm install -g npm@~11.10.0
47+
4548
- name: Install dependencies
4649
run: pnpm install --frozen-lockfile
4750

@@ -52,4 +55,4 @@ jobs:
5255
run: pnpm build
5356

5457
- name: Publish to npm
55-
run: pnpm publish --provenance --access public --no-git-checks --ignore-scripts
58+
run: npm publish --provenance --access public --ignore-scripts

0 commit comments

Comments
 (0)