Skip to content

Commit ed02b87

Browse files
rom1504claude
andauthored
Switch to trusted publishing via OIDC (#375)
- Add id-token: write permission for OIDC trusted publishing - Use Node 24 (ships npm 11.11.0, trusted publishing requires >=11.5.1) - Add registry-url for OIDC auth flow - Upgrade JS-DevTools/npm-publish from v1 to v4 - Remove NPM_AUTH_TOKEN (no longer needed) Co-authored-by: rom1504 <rom1504@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c08af81 commit ed02b87

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
push:
44
branches:
55
- master # Change this to your default branch
6+
permissions:
7+
id-token: write
8+
contents: write
69
jobs:
710
npm-publish:
811
name: npm-publish
@@ -13,12 +16,11 @@ jobs:
1316
- name: Set up Node.js
1417
uses: actions/setup-node@master
1518
with:
16-
node-version: 22.0.0
19+
node-version: 24
20+
registry-url: 'https://registry.npmjs.org'
1721
- run: npm install
1822
- id: publish
19-
uses: JS-DevTools/npm-publish@v1
20-
with:
21-
token: ${{ secrets.NPM_AUTH_TOKEN }}
23+
uses: JS-DevTools/npm-publish@v4
2224
- name: Create Release
2325
if: steps.publish.outputs.type != 'none'
2426
id: create_release

0 commit comments

Comments
 (0)