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
|
||||
|
||||
+3
-1
@@ -69,9 +69,11 @@ yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
|
||||
# Package manager lock files (keep bun.lock but ignore others if mixed)
|
||||
package-lock.json
|
||||
# Allow package-lock.json in web directory for GitHub Actions caching
|
||||
yarn.lock
|
||||
pnpm-lock.yaml
|
||||
package-lock.json
|
||||
!web/package-lock.json
|
||||
|
||||
# Build outputs
|
||||
out/
|
||||
|
||||
Generated
+11333
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user