Skip to content

Commit 66c17be

Browse files
committed
chore: enable OIDC npm publishing
1 parent d46edab commit 66c17be

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/release-please.yml

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

9+
permissions:
10+
id-token: write # Required for OIDC
11+
contents: read
12+
913
jobs:
1014
release-please:
1115
runs-on: ubuntu-latest
@@ -31,6 +35,5 @@ jobs:
3135
with:
3236
node-version: lts/*
3337
registry-url: 'https://registry.npmjs.org'
38+
- run: npm install -g npm@11
3439
- run: npm publish --access public
35-
env:
36-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)