Skip to content

Commit cd8bc34

Browse files
Remove npm tokens usage (#83)
1 parent b2a0d95 commit cd8bc34

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/npm-publish.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
jobs:
88
publish-npm:
99
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
12+
contents: read
1013
steps:
1114
- uses: actions/checkout@v4
1215
- uses: pnpm/action-setup@v4
@@ -23,7 +26,5 @@ jobs:
2326
pnpm build
2427
VERSION=${GITHUB_REF#refs/tags/}
2528
npm version $VERSION --no-git-tag-version
26-
- name: Publish
27-
run: npm publish --access public
28-
env:
29-
NODE_AUTH_TOKEN: ${{secrets.DUNE_NPM_TOKEN}}
29+
- name: Publish to npm (OIDC)
30+
run: npm publish --access public --provenance --ignore-scripts

0 commit comments

Comments
 (0)