Skip to content

Commit ca6cea3

Browse files
committed
ci: add contents: read permission to package job for OIDC
1 parent e1c10d2 commit ca6cea3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ jobs:
8282
runs-on: ubuntu-latest
8383
permissions:
8484
id-token: write # required for npm trusted publishing (OIDC)
85+
contents: read
8586

8687
steps:
8788
- uses: actions/checkout@v4
@@ -120,9 +121,9 @@ jobs:
120121
- name: Setup Node.js
121122
uses: actions/setup-node@v4
122123
with:
123-
node-version: '20'
124+
node-version: '24'
124125
registry-url: 'https://registry.npmjs.org'
125126

126127
- name: Publish to npm
127128
if: startsWith(github.ref, 'refs/tags/v')
128-
run: cd npm && npm publish --access public --provenance
129+
run: cd npm && npm publish --access public

0 commit comments

Comments
 (0)