This repository was archived by the owner on Feb 12, 2025. It is now read-only.
File tree 2 files changed +10
-2
lines changed
2 files changed +10
-2
lines changed 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