Skip to content

Commit 17db25c

Browse files
committed
Switch npm publish to OIDC trusted publisher, remove NPM_TOKEN
- Add id-token: write permission for OIDC authentication - Add --provenance --access public to npm publish - Remove NODE_AUTH_TOKEN dependency (OIDC replaces it)
1 parent 182cd33 commit 17db25c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/npm.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: read
13+
id-token: write
1314

1415
steps:
1516
- uses: actions/checkout@v6
@@ -22,6 +23,4 @@ jobs:
2223
- run: npm ci
2324
- run: cd ui && npm ci
2425
- run: npm run build
25-
- run: npm publish
26-
env:
27-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26+
- run: npm publish --provenance --access public

0 commit comments

Comments
 (0)