File tree 4 files changed +15
-4
lines changed
4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 30
30
id: should_run
31
31
name: Should Run
32
32
run: echo "shouldrun=true" >> $GITHUB_OUTPUT
33
+ shell: bash
33
34
- if : steps.should_run.outputs.shouldrun == 'true'
34
35
name : Checkout repository
35
36
uses : actions/checkout@v3
74
75
id: should_run
75
76
name: Should Run
76
77
run: echo "shouldrun=true" >> $GITHUB_OUTPUT
78
+ shell: bash
77
79
- if : steps.should_run.outputs.shouldrun == 'true'
78
80
name : Checkout repository
79
81
uses : actions/checkout@v3
Original file line number Diff line number Diff line change 33
33
id: should_run
34
34
name: Should Run
35
35
run: echo "shouldrun=true" >> $GITHUB_OUTPUT
36
+ shell: bash
36
37
- if : steps.should_run.outputs.shouldrun == 'true'
37
38
name : Set git to use LF # to once and for all finish neverending fight between Unix and Windows
38
39
run : |
@@ -60,13 +61,13 @@ jobs:
60
61
- if : steps.packagejson.outputs.exists == 'true'
61
62
name : Install dependencies
62
63
id : first-installation
63
- run : npm install --loglevel verbose
64
+ run : npm ci
64
65
continue-on-error : true
65
66
- if : steps.first-installation.outputs.status == 'failure' && steps.packagejson.outputs.exists == 'true'
66
67
name : Clear NPM cache and install deps again
67
68
run : |
68
69
npm cache clean --force
69
- npm install --loglevel verbose
70
+ npm ci
70
71
- if : steps.packagejson.outputs.exists == 'true'
71
72
name : Test
72
73
run : npm test --if-present
Original file line number Diff line number Diff line change 85
85
- name : Check if Node.js project and has package.json
86
86
id : packagejson
87
87
run : test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
88
+ shell : bash
88
89
- if : steps.packagejson.outputs.exists == 'true'
89
90
name : Check package-lock version
90
91
uses : asyncapi/.github/.github/actions/get-node-version-from-package-lock@master
98
99
cache-dependency-path : ' **/package-lock.json'
99
100
- if : steps.packagejson.outputs.exists == 'true'
100
101
name : Install dependencies
101
- run : npm install
102
+ id : first-installation
103
+ run : npm ci
104
+ continue-on-error : true
105
+ - if : steps.first-installation.outputs.status == 'failure' && steps.packagejson.outputs.exists == 'true'
106
+ name : Clear NPM cache and install deps again
107
+ run : |
108
+ npm cache clean --force
109
+ npm ci
102
110
- if : steps.packagejson.outputs.exists == 'true'
103
111
name : Add plugin for conventional commits for semantic-release
104
112
run :
npm install --save-dev [email protected]
Original file line number Diff line number Diff line change 37
37
cache-dependency-path : ' **/package-lock.json'
38
38
- if : steps.packagejson.outputs.exists == 'true'
39
39
name : Install dependencies
40
- run : npm install
40
+ run : npm ci
41
41
- if : steps.packagejson.outputs.exists == 'true'
42
42
name : Assets generation
43
43
run : npm run generate:assets --if-present
You can’t perform that action at this time.
0 commit comments