File tree 2 files changed +5
-14
lines changed
2 files changed +5
-14
lines changed Original file line number Diff line number Diff line change 4
4
name : Node.js Package
5
5
6
6
on :
7
+ workflow_dispatch :
7
8
release :
8
9
types : [created]
9
10
10
11
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
-
21
12
publish-npm :
22
- needs : build
23
13
runs-on : ubuntu-latest
24
14
steps :
25
15
- uses : actions/checkout@v4
26
16
- uses : actions/setup-node@v4
27
17
with :
28
- node-version : 20
18
+ node-version : ' >=22.12.0 '
29
19
registry-url : https://registry.npmjs.org/
30
- - run : npm ci
20
+ - run : npm install
21
+ - run : npm run ci
31
22
- run : npm publish
32
23
env :
33
24
NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-latest
10
10
11
11
steps :
12
- - uses : actions/checkout@v2
12
+ - uses : actions/checkout@v4
13
13
- uses : actions/setup-node@v4
14
14
with :
15
15
node-version : ' >=22.12.0'
You can’t perform that action at this time.
0 commit comments