File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 3333 id: should_run
3434 name: Should Run
3535 run: echo "shouldrun=true" >> $GITHUB_OUTPUT
36+ shell: bash
3637 - if : steps.should_run.outputs.shouldrun == 'true'
3738 name : Set git to use LF # to once and for all finish neverending fight between Unix and Windows
3839 run : |
@@ -60,13 +61,13 @@ jobs:
6061 - if : steps.packagejson.outputs.exists == 'true'
6162 name : Install dependencies
6263 id : first-installation
63- run : npm install --loglevel verbose
64+ run : npm ci
6465 continue-on-error : true
6566 - if : steps.first-installation.outputs.status == 'failure' && steps.packagejson.outputs.exists == 'true'
6667 name : Clear NPM cache and install deps again
6768 run : |
6869 npm cache clean --force
69- npm install --loglevel verbose
70+ npm ci
7071 - if : steps.packagejson.outputs.exists == 'true'
7172 name : Test
7273 run : npm test --if-present
Original file line number Diff line number Diff line change 8585 - name : Check if Node.js project and has package.json
8686 id : packagejson
8787 run : test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT
88+ shell : bash
8889 - if : steps.packagejson.outputs.exists == 'true'
8990 name : Check package-lock version
9091 uses : asyncapi/.github/.github/actions/get-node-version-from-package-lock@master
9899 cache-dependency-path : ' **/package-lock.json'
99100 - if : steps.packagejson.outputs.exists == 'true'
100101 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
102110 - if : steps.packagejson.outputs.exists == 'true'
103111 name : Add plugin for conventional commits for semantic-release
104112 run : npm install --save-dev conventional-changelog-conventionalcommits@5.0.0
Original file line number Diff line number Diff line change 3737 cache-dependency-path : ' **/package-lock.json'
3838 - if : steps.packagejson.outputs.exists == 'true'
3939 name : Install dependencies
40- run : npm install
40+ run : npm ci
4141 - if : steps.packagejson.outputs.exists == 'true'
4242 name : Assets generation
4343 run : npm run generate:assets --if-present
You can’t perform that action at this time.
0 commit comments