Skip to content

Commit 1efe348

Browse files
authored
fix(publish): switch to npm OIDC Trusted Publishing with id-token (#16)
1 parent 7587ddc commit 1efe348

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ on:
66
- '[0-9]*.[0-9]*.[0-9]*'
77

88
permissions:
9-
contents: read
9+
contents: write
10+
id-token: write # npm OIDC Trusted Publishing + provenance
1011

1112
jobs:
1213
publish:
@@ -33,7 +34,5 @@ jobs:
3334
run: cp README.md map/README.md
3435

3536
- name: Publish map package
36-
run: npm publish
37+
run: npm publish --provenance --access public
3738
working-directory: map
38-
env:
39-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)