Skip to content

Commit 7513fe2

Browse files
Update npm-publish.yml
1 parent 693114b commit 7513fe2

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/npm-publish.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,22 @@ on:
55
tags:
66
- 'v*'
77

8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: read
11+
812
jobs:
913
npm-publish:
1014
runs-on: ubuntu-latest
11-
permissions:
12-
contents: write
13-
id-token: write
1415
steps:
15-
- uses: actions/checkout@v5
16+
- uses: actions/checkout@v6
1617
- name: Use Node.js
1718
uses: actions/setup-node@v6
1819
with:
20+
node-version: '24'
1921
registry-url: 'https://registry.npmjs.org'
22+
- name: Update npm to latest version for OIDC support
23+
run: npm install -g npm@latest
2024
- run: |
2125
npm install
22-
npm publish --provenance
23-
env:
24-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26+
npm publish

0 commit comments

Comments
 (0)