Skip to content

Commit 4d154be

Browse files
committed
update actions
1 parent cc30e50 commit 4d154be

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,21 @@
44
name: Node.js Package
55

66
on:
7+
workflow_dispatch:
78
release:
89
types: [created]
910

1011
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v4
15-
- uses: actions/setup-node@v4
16-
with:
17-
node-version: 20
18-
- run: npm ci
19-
- run: npm test
20-
2112
publish-npm:
22-
needs: build
2313
runs-on: ubuntu-latest
2414
steps:
2515
- uses: actions/checkout@v4
2616
- uses: actions/setup-node@v4
2717
with:
28-
node-version: 20
18+
node-version: '>=22.12.0'
2919
registry-url: https://registry.npmjs.org/
30-
- run: npm ci
20+
- run: npm install
21+
- run: npm run ci
3122
- run: npm publish
3223
env:
3324
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v4
1313
- uses: actions/setup-node@v4
1414
with:
1515
node-version: '>=22.12.0'

0 commit comments

Comments
 (0)