Skip to content

Commit 31d27a0

Browse files
authored
Shorten GitHub Actions hashFiles pattern
1 parent b808eb0 commit 31d27a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/01-app/02-guides/ci-build-caching.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ with:
8282
~/.npm
8383
${{ github.workspace }}/.next/cache
8484
# Generate a new cache whenever packages or source files change.
85-
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
85+
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.[jt]sx?') }}
8686
# If source files changed but packages didn't, rebuild from a prior cache.
8787
restore-keys: |
8888
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-

0 commit comments

Comments
 (0)