File tree 2 files changed +19
-15
lines changed
2 files changed +19
-15
lines changed Original file line number Diff line number Diff line change 7
7
jobs :
8
8
build :
9
9
runs-on : ubuntu-latest
10
+ strategy :
11
+ matrix :
12
+ node-version : [ 18, 20, 22 ]
10
13
steps :
11
- - uses : actions/checkout@v1
14
+ - uses : actions/checkout@v4
12
15
- name : Use Node.js ${{ matrix.node-version }}
13
- uses : actions/setup-node@v1
16
+ uses : actions/setup-node@v4
14
17
with :
15
- node-version : 12
18
+ node-version : ${{ matrix.node-version }}
19
+ cache : ' npm'
16
20
- name : npm install, build, and test
17
21
run : |
18
22
npm ci
19
23
npm run build --if-present
20
24
npm test
21
- env :
22
- CI : true
23
25
24
26
publish-npm :
25
27
needs : build
26
28
runs-on : ubuntu-latest
27
29
steps :
28
- - uses : actions/checkout@v1
29
- - uses : actions/setup-node@v1
30
+ - uses : actions/checkout@v4
31
+ - uses : actions/setup-node@v4
30
32
with :
31
- node-version : 12
33
+ cache : ' npm '
32
34
registry-url : https://registry.npmjs.org/
33
35
- run : npm ci
34
- - run : npm publish
36
+ - run : npm publish --provenance --access public
35
37
env :
36
- NODE_AUTH_TOKEN : ${{secrets.npm_token }}
38
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
37
39
38
40
publish-gpr :
39
41
needs : build
40
42
runs-on : ubuntu-latest
41
43
steps :
42
- - uses : actions/checkout@v1
43
- - uses : actions/setup-node@v1
44
+ - uses : actions/checkout@v4
45
+ - uses : actions/setup-node@v4
44
46
with :
45
- node-version : 12
47
+ cache : ' npm '
46
48
registry-url : https://npm.pkg.github.com/
47
- scope : ' @hkdobrev'
48
49
- run : npm ci
49
- - run : npm publish
50
+ - run : npm publish --provenance --access public
50
51
env :
51
52
NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change 8
8
"author" :
" Haralan Dobrev <[email protected] >" ,
9
9
"license" : " MIT" ,
10
10
"private" : false ,
11
+ "engines" : {
12
+ "node" : " >=18 <23"
13
+ },
11
14
"dependencies" : {
12
15
"cosmiconfig" : " ^9.0.0" ,
13
16
"execa" : " ^5.1.1" ,
You can’t perform that action at this time.
0 commit comments