Fix CI: handle missing package-lock.json gracefully
ci/woodpecker/push/woodpecker Pipeline failed
Details
ci/woodpecker/push/woodpecker Pipeline failed
Details
Fall back to npm install if package-lock.json doesn't exist
This commit is contained in:
parent
b70949e904
commit
11f1b46055
|
|
@ -20,7 +20,7 @@ steps:
|
||||||
- npm --version | cat
|
- npm --version | cat
|
||||||
- node --version | cat
|
- node --version | cat
|
||||||
- rm -rf node_modules
|
- rm -rf node_modules
|
||||||
- npm ci
|
- if [ -f package-lock.json ]; then npm ci; else npm install; fi
|
||||||
- npm test
|
- npm test
|
||||||
when:
|
when:
|
||||||
branch: main
|
branch: main
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue