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:
jatinkrmalik
2025-05-25 21:16:27 -05:00
parent ec68dd90f0
commit b90d497f5a
3 changed files with 11342 additions and 2 deletions
+6 -1
View File
@@ -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
View File
@@ -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/
+11333
View File
File diff suppressed because it is too large Load Diff