Skip to content

Commit 4ae4528

Browse files
author
Eric Lee
committed
Upgraded publish workflow to Node 24 for npm 11.x OIDC publish support
Node 22 ships with npm 10.9.2, which signs provenance via OIDC but can't authenticate the publish PUT through Trusted Publisher. Node 24 ships with npm 11.x, which supports OIDC publish end-to-end. In-place npm upgrade (npm i -g npm@latest) hits MODULE_NOT_FOUND on promise-retry mid-upgrade, so the cleaner fix is to use Node 24 from the start. Matches the project's @types/node@^24 target as well.
1 parent 07a9531 commit 4ae4528

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@ jobs:
2121

2222
- uses: actions/setup-node@v4
2323
with:
24-
node-version: '22'
24+
node-version: '24'
2525
registry-url: 'https://registry.npmjs.org'
2626
cache: 'npm'
2727

28-
- run: npm install -g npm@latest
29-
3028
- run: npm ci
3129

3230
- run: npm run build

0 commit comments

Comments
 (0)