We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 693114b commit 7513fe2Copy full SHA for 7513fe2
.github/workflows/npm-publish.yml
@@ -5,20 +5,22 @@ on:
5
tags:
6
- 'v*'
7
8
+permissions:
9
+ id-token: write # Required for OIDC
10
+ contents: read
11
+
12
jobs:
13
npm-publish:
14
runs-on: ubuntu-latest
- permissions:
- contents: write
- id-token: write
15
steps:
- - uses: actions/checkout@v5
16
+ - uses: actions/checkout@v6
17
- name: Use Node.js
18
uses: actions/setup-node@v6
19
with:
20
+ node-version: '24'
21
registry-url: 'https://registry.npmjs.org'
22
+ - name: Update npm to latest version for OIDC support
23
+ run: npm install -g npm@latest
24
- run: |
25
npm install
- npm publish --provenance
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26
+ npm publish
0 commit comments