Skip to content

Commit b2a538e

Browse files
committed
ci: switch npm publishing to OIDC
1 parent de7e978 commit b2a538e

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,5 @@ jobs:
2525
env:
2626
GITHUB_REF_NAME: ${{ github.ref_name }}
2727
- run: npm run verify
28-
- name: Publish with npm provenance
29-
run: |
30-
[ -n "$NPM_TOKEN" ] && npm config set //registry.npmjs.org/:_authToken "$NPM_TOKEN"
31-
npm publish --access public --provenance
32-
env:
33-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
28+
- name: Publish with npm trusted publishing
29+
run: npm publish --access public

0 commit comments

Comments
 (0)