Skip to content

Commit 091e22b

Browse files
committed
ci: use OIDC trusted publisher instead of NPM_TOKEN secret
1 parent 004188e commit 091e22b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
permissions:
1111
contents: read
12+
id-token: write
1213
steps:
1314
- uses: actions/checkout@v4
1415

@@ -22,6 +23,4 @@ jobs:
2223
- run: npm run typecheck
2324
- run: npm test
2425
- run: npm run build
25-
- run: npm publish --access public
26-
env:
27-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26+
- run: npm publish --access public --provenance

0 commit comments

Comments
 (0)