Skip to content

Commit 9aa6d77

Browse files
chore(ci): switch publish to OIDC trusted publishing
Drops NPM_TOKEN/NODE_AUTH_TOKEN from the publish job. npm CLI auto-detects GitHub Actions OIDC (id-token: write was already present from #1836) and exchanges for a short-lived publish credential. Also drops registry-url from setup-node — it writes a .npmrc expecting NODE_AUTH_TOKEN, which short-circuits before OIDC kicks in. npm defaults to npmjs.org without it. Requires trusted publishers configured per-package on npmjs.com: client/server/express/hono/node/fastify → workflow release.yml, environment release.
1 parent 53fb84b commit 9aa6d77

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ jobs:
6363
node-version: 24
6464
cache: pnpm
6565
cache-dependency-path: pnpm-lock.yaml
66-
registry-url: 'https://registry.npmjs.org'
6766

6867
- name: Install dependencies
6968
run: pnpm install
@@ -74,6 +73,4 @@ jobs:
7473
publish: pnpm run ci:publish
7574
env:
7675
GITHUB_TOKEN: ${{ github.token }}
77-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
78-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7976
NPM_CONFIG_PROVENANCE: 'true'

0 commit comments

Comments
 (0)