Skip to content

Commit cd80c9a

Browse files
authored
chore: setup npm OIDC for publishing (#203)
1 parent d6e7492 commit cd80c9a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release-please.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: read
11+
812
jobs:
913
release-please:
1014
runs-on: ubuntu-latest
@@ -29,5 +33,3 @@ jobs:
2933
node-version: lts/*
3034
registry-url: 'https://registry.npmjs.org'
3135
- run: npm publish --access public
32-
env:
33-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)