fix: add nextjs action caching

This commit is contained in:
diced
2025-02-03 16:12:02 -08:00
parent 333ea0b949
commit 6edeb78373

View File

@@ -35,10 +35,12 @@ jobs:
- uses: actions/cache@v4
with:
path: ${{ steps.pnpm-cache.outputs.store_path }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
path: |
${{ steps.pnpm-cache.outputs.store_path }}
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-pnpm-next-store-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
${{ runner.os }}-pnpm-next-store-${{ hashFiles('**/package-lock.json') }}-
- name: Install
run: pnpm install