Skip to content

Commit 78cc022

Browse files
authored
Update npmpublish.yml
1 parent 165c648 commit 78cc022

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/npmpublish.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
id-token: write # Required for OIDC
9+
contents: read
10+
711
jobs:
812
build:
913
runs-on: ubuntu-latest
1014
steps:
1115
- uses: actions/checkout@v4.3.1
1216
- uses: actions/setup-node@v6.4.0
1317
with:
14-
node-version: 20
18+
node-version: 20.20.2
1519
- run: npm ci
1620
- run: npm test
1721

@@ -22,9 +26,8 @@ jobs:
2226
- uses: actions/checkout@v4.3.1
2327
- uses: actions/setup-node@v6.4.0
2428
with:
25-
node-version: 20
29+
node-version: 24.15.0
2630
registry-url: https://registry.npmjs.org/
31+
package-manager-cache: false
2732
- run: npm ci
2833
- run: npm publish
29-
env:
30-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)