Skip to content

Commit bab73c0

Browse files
authored
ci: update global workflows
1 parent 454ae23 commit bab73c0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/if-nodejs-pr-testing.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,14 @@ jobs:
2929
node-version: 14
3030
- if: steps.packagejson.outputs.exists == 'true'
3131
name: Install dependencies
32+
id: first-installation
3233
run: npm install --loglevel verbose
34+
continue-on-error: true
35+
- if: steps.first-installation.outputs.status == 'failure' && steps.packagejson.outputs.exists == 'true'
36+
name: Clear NPM cache and install deps again
37+
run: |
38+
npm cache clean --force
39+
npm install --loglevel verbose
3340
- if: steps.packagejson.outputs.exists == 'true'
3441
name: Test
3542
run: npm test

0 commit comments

Comments
 (0)