Compare commits

...

3 commits

Author SHA1 Message Date
3cc65c3a1e Merge pull request 'Fix Next.js build caching' (#5) from feature/fix-nextjs-build-caching into main
Some checks failed
CI / test (push) Successful in 11m19s
Deploy / deploy (push) Has been cancelled
Reviewed-on: #5
2025-07-17 00:29:16 +03:00
d07bdec509 Merge branch 'main' into feature/fix-nextjs-build-caching
Some checks failed
CI / test (pull_request) Failing after 19s
CI / test (push) Successful in 10m56s
2025-07-17 00:21:35 +03:00
Derek Slenk
ba3c89196a Fix Next.js build caching
All checks were successful
CI / test (push) Successful in 14m6s
CI / test (pull_request) Successful in 14m44s
- Separate npm dependencies and Next.js build cache
- Use proper cache keys following Next.js CI docs
- Fix file pattern matching for cache invalidation
2025-07-16 16:50:15 -04:00
2 changed files with 20 additions and 8 deletions

View file

@ -13,13 +13,19 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Cache Next.js build
uses: actions/cache@v3
with:
path: |
~/.npm
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.[jt]s', '**/*.[jt]sx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-

View file

@ -12,13 +12,19 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Cache Next.js build
uses: actions/cache@v3
with:
path: |
~/.npm
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.[jt]s', '**/*.[jt]sx') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-