Skip to content

Commit d125170

Browse files
glommerclaude
andcommitted
fix: upgrade npm to latest for OIDC trusted publishing
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c1706b6 commit d125170

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
contents: read
9+
id-token: write
10+
711
jobs:
812
publish:
913
runs-on: ubuntu-latest
@@ -17,7 +21,9 @@ jobs:
1721
- uses: actions/setup-node@v4
1822
with:
1923
node-version: 22
20-
registry-url: https://registry.npmjs.org
24+
25+
- name: Upgrade npm for OIDC support
26+
run: npm install -g npm@latest
2127

2228
- run: bun install
2329

@@ -28,6 +34,4 @@ jobs:
2834
run: bun test/smoke.ts
2935

3036
- name: Publish
31-
run: npm publish --access public
32-
env:
33-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37+
run: npm publish --provenance --access public

0 commit comments

Comments
 (0)