Skip to content

Commit c9a06fe

Browse files
ci: Remove npm token in favor of trusted publishing
1 parent d755f1d commit c9a06fe

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
branches:
66
- "main"
7+
8+
permissions:
9+
id-token: write # Required for OIDC / NPM Trusted Publishing (https://repos.openssf.org/trusted-publishers-for-all-package-repositories)
10+
contents: read
711

812
jobs:
913
quality-bump-and-publish:
@@ -37,5 +41,3 @@ jobs:
3741
run: npm run package
3842
- name: Publish to npm
3943
run: npm publish
40-
env:
41-
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
1+
//registry.npmjs.org/

0 commit comments

Comments
 (0)