fix: add package-lock.json for GitHub Actions caching
- Allow web/package-lock.json in .gitignore for npm caching - Add package-lock.json to enable GitHub Actions dependency caching - This fixes the 'unable to cache dependencies' error in CI
This commit is contained in:
@@ -31,7 +31,12 @@ jobs:
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: ./web
|
||||
run: npm ci
|
||||
run: |
|
||||
if [ -f "package-lock.json" ]; then
|
||||
npm ci
|
||||
else
|
||||
npm install
|
||||
fi
|
||||
|
||||
- name: Build website
|
||||
working-directory: ./web
|
||||
|
||||
Reference in New Issue
Block a user