Fix CI: handle missing package-lock.json gracefully
ci/woodpecker/push/woodpecker Pipeline failed Details

Fall back to npm install if package-lock.json doesn't exist
This commit is contained in:
Colin 2026-01-23 20:05:15 -05:00
parent b70949e904
commit 11f1b46055
Signed by: colin
SSH Key Fingerprint: SHA256:nRPCQTeMFLdGytxRQmPVK9VXY3/ePKQ5lGRyJhT5DY8
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ steps:
- npm --version | cat
- node --version | cat
- rm -rf node_modules
- npm ci
- if [ -f package-lock.json ]; then npm ci; else npm install; fi
- npm test
when:
branch: main