fix: use npm install when no lockfile
All checks were successful
Deploy / lint-build-deploy (push) Successful in 1m20s
All checks were successful
Deploy / lint-build-deploy (push) Successful in 1m20s
This commit is contained in:
@@ -17,7 +17,12 @@ jobs:
|
||||
node-version: '18'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
run: |
|
||||
if [ -f package-lock.json ]; then
|
||||
npm ci
|
||||
else
|
||||
npm install
|
||||
fi
|
||||
|
||||
- name: Run linting
|
||||
run: npm run lint
|
||||
|
||||
Reference in New Issue
Block a user