File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -15,18 +15,19 @@ jobs:
15
15
node-version : [18.x, 20.x]
16
16
17
17
steps :
18
- - uses : actions/checkout@v2
18
+ - uses : actions/checkout@v4
19
19
- name : Use Node.js ${{ matrix.node-version }}
20
- uses : actions/setup-node@v1
20
+ uses : actions/setup-node@v4
21
21
with :
22
22
node-version : ${{ matrix.node-version }}
23
23
- run : npm install
24
24
- run : npm test
25
25
env :
26
26
CI : true
27
-
27
+ - name : Try CLI
28
+ run : node bin/cli.mjs -v
28
29
- name : Coveralls Parallel
29
- uses : coverallsapp/github-action@master
30
+ uses : coverallsapp/github-action@v2
30
31
with :
31
32
github-token : ${{ secrets.github_token }}
32
33
flag-name : run-${{ matrix.node-version }}
37
38
runs-on : ubuntu-latest
38
39
steps :
39
40
- name : Coveralls Finished
40
- uses : coverallsapp/github-action@master
41
+ uses : coverallsapp/github-action@v2
41
42
with :
42
43
github-token : ${{ secrets.github_token }}
43
44
parallel-finished : true
Original file line number Diff line number Diff line change @@ -56,7 +56,9 @@ async function main() {
56
56
}
57
57
58
58
if ( process . argv . includes ( '--version' ) || process . argv . includes ( '-v' ) ) {
59
- console . log ( 'v' + require ( '../package.json' ) . version )
59
+ const json = fs . readFileSync ( path . resolve ( __dirname , '../package.json' ) , { encoding : 'utf-8' } )
60
+ const { version } = JSON . parse ( json )
61
+ console . log ( `v${ version } ` )
60
62
return
61
63
}
62
64
You can’t perform that action at this time.
0 commit comments