Skip to content

Commit 212a2fb

Browse files
naveenskyclaude
andcommitted
Use npm OIDC trusted publishing instead of NPM_TOKEN
- Upgrade to Node 22 and npm@latest (11.5.1+ required for OIDC) - Remove --provenance flag (automatic with OIDC) - Remove NPM_TOKEN dependency 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent a5c1bca commit 212a2fb

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish to NPM
33
on:
44
push:
55
branches:
6-
- main
6+
- npm-publish
77

88
permissions:
99
id-token: write # Required for npm provenance (OIDC)
@@ -20,9 +20,12 @@ jobs:
2020
- name: Setup Node.js
2121
uses: actions/setup-node@v4
2222
with:
23-
node-version: '20'
23+
node-version: '22'
2424
registry-url: 'https://registry.npmjs.org'
2525

26+
- name: Update npm for OIDC support
27+
run: npm install -g npm@latest
28+
2629
- name: Install dependencies
2730
run: npm install
2831

@@ -49,4 +52,4 @@ jobs:
4952
5053
- name: Publish to NPM
5154
if: steps.version-check.outputs.should_publish == 'true'
52-
run: npm publish --access=public --provenance
55+
run: npm publish --access=public

0 commit comments

Comments
 (0)