Skip to content

Commit e9007ad

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

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/release-please.yml

Lines changed: 5 additions & 3 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
@@ -42,8 +46,6 @@ jobs:
4246
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4347
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
4448
with:
45-
node-version: lts/*
49+
node-version: 24 # npm >= 11.5.1
4650
registry-url: 'https://registry.npmjs.org'
4751
- run: npm publish --provenance --access public
48-
env:
49-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)