Skip to content

Commit 999430f

Browse files
committed
ci: remove registry-url from setup-node — fixes OIDC Trusted Publisher flow
1 parent 9c735b1 commit 999430f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎.github/workflows/publish.yml‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,12 @@ jobs:
4242
uses: actions/setup-node@v4
4343
with:
4444
node-version: '22'
45-
registry-url: 'https://registry.npmjs.org'
4645
cache: 'npm'
46+
# No registry-url — setup-node would inject an .npmrc _authToken line that
47+
# sends an empty Bearer header and blocks npm's OIDC Trusted Publisher flow.
4748

4849
- name: Install dependencies (skip optional native modules)
4950
run: npm ci --omit=optional
5051

51-
- name: Publish with provenance
52+
- name: Publish with provenance (OIDC Trusted Publisher — no token needed)
5253
run: npm publish --access public --provenance
53-
env:
54-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)