Skip to content

Commit a008215

Browse files
committed
chore: enable OIDC npm publishing
1 parent b65e01b commit a008215

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
@@ -44,6 +48,5 @@ jobs:
4448
with:
4549
node-version: lts/*
4650
registry-url: 'https://registry.npmjs.org'
51+
- run: npm install -g npm@11
4752
- run: npm publish --provenance --access public
48-
env:
49-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)