Skip to content

Commit 8ccfb1f

Browse files
committed
Update npm-publish.yml
1 parent 8c54627 commit 8ccfb1f

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/npm-publish.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
name: Node.js Package
22

33
on:
4-
release:
5-
types: [created]
4+
push:
5+
tags:
6+
- 'v*'
67

78
permissions:
89
contents: read
910
packages: write
11+
id-token: write # Required for OIDC
1012

1113
jobs:
1214
build:
@@ -15,7 +17,7 @@ jobs:
1517
- uses: actions/checkout@v6
1618
- uses: actions/setup-node@v6
1719
with:
18-
node-version: 20
20+
node-version: 24
1921
- run: npm ci
2022
- run: npm run build
2123

@@ -26,7 +28,7 @@ jobs:
2628
- uses: actions/checkout@v6
2729
- uses: actions/setup-node@v6
2830
with:
29-
node-version: 20
31+
node-version: 24
3032
registry-url: https://npm.pkg.github.com/
3133
- run: npm ci
3234
- run: npm publish
@@ -40,7 +42,7 @@ jobs:
4042
- uses: actions/checkout@v6
4143
- uses: actions/setup-node@v6
4244
with:
43-
node-version: 20
45+
node-version: 24
4446
registry-url: https://registry.npmjs.org/
4547
- run: npm ci
4648
- run: npm publish

0 commit comments

Comments
 (0)