Skip to content

Commit 0d96ca6

Browse files
committed
cache rebuild again
1 parent 88a9dbe commit 0d96ca6

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/nextjs.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@ jobs:
5151
#
5252
# You may remove this line if you want to manage the configuration yourself.
5353
static_site_generator: next
54-
# - name: Restore cache
55-
# uses: actions/cache@v4
56-
# with:
57-
# path: |
58-
# .next/cache
59-
# # Generate a new cache whenever packages or source files change.
60-
# key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
61-
# # If source files changed but packages didn't, rebuild from a prior cache.
62-
# restore-keys: |
63-
# ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
54+
- name: Restore cache
55+
uses: actions/cache@v4
56+
with:
57+
path: |
58+
.next/cache
59+
# Generate a new cache whenever packages or source files change.
60+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/bun.lockb') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
61+
# If source files changed but packages didn't, rebuild from a prior cache.
62+
restore-keys: |
63+
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/bun.lockb') }}-
6464
- name: Install dependencies
6565
run: bun install
6666
- name: Build with Next.js

0 commit comments

Comments
 (0)