Make audit more reliable

I've seen this transient error a couple of times:

https://github.com/rust-analyzer/rust-analyzer/runs/511162809?check_suite_focus=true#step:5:8
This commit is contained in:
Aleksey Kladov 2020-03-16 15:00:33 +01:00
parent a00bab5781
commit 1aa5d5dc21

View file

@ -104,7 +104,7 @@ jobs:
- run: npm ci
working-directory: ./editors/code
- run: npm audit
- run: npm audit || sleep 10 && npm audit || sleep 30 && npm audit
working-directory: ./editors/code
- run: npm run lint