Skip to content

Commit 6f7391b

Browse files
committed
ci(release): publish to npm via OIDC trusted publishing
Node 24 bundles npm 11.17.0, which clears the npm >= 11.5.1 floor that previously made trusted publishing unavailable, so the long-lived NPM_TOKEN is no longer needed. pnpm publish shells out to the ambient npm, and npm's OIDC exchange overwrites the registry _authToken it resolves from .npmrc, so no other change to the publish step is required. Requires a trusted publisher (this repo, release.yml) to be registered on npmjs.com for every published package before the next tag, since the token exchange is per package name.
1 parent ea29e49 commit 6f7391b

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ jobs:
7878
fi
7979
env:
8080
NPM_CONFIG_PROVENANCE: true
81-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8281

8382
- if: github.event_name == 'push'
8483
name: Create a draft release

0 commit comments

Comments
 (0)