Update npm workflow for trusted publishing Updated Node.js version from 22 to 24 and added permissions for OIDC.

d118eee014330c37978cc0226f4ca74a1f321eea

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
1 files changed, +6 -4Showing whitespace changes
.github/workflows/npm-publish.yml+6 -4
@@ -7,6 +7,10 @@ on:
7 release:7 release:
8 types: [created]8 types: [created]
99
10permissions:
11 id-token: write # Required for OIDC
12 contents: read
13
10jobs:14jobs:
11 build:15 build:
12 runs-on: ubuntu-latest16 runs-on: ubuntu-latest
@@ -14,7 +18,7 @@ jobs:
14 - uses: actions/checkout@v318 - uses: actions/checkout@v3
15 - uses: actions/setup-node@v319 - uses: actions/setup-node@v3
16 with:20 with:
17 node-version: 2221 node-version: 24
18 - run: npm ci22 - run: npm ci
1923
20 publish-npm:24 publish-npm:
@@ -24,9 +28,7 @@ jobs:
24 - uses: actions/checkout@v328 - uses: actions/checkout@v3
25 - uses: actions/setup-node@v329 - uses: actions/setup-node@v3
26 with:30 with:
27 node-version: 2231 node-version: 24
28 registry-url: https://registry.npmjs.org/32 registry-url: https://registry.npmjs.org/
29 - run: npm ci33 - run: npm ci
30 - run: npm publish34 - run: npm publish
31 env:
32 NODE_AUTH_TOKEN: ${{secrets.npm_token}}