docs(deploy): fix GitHub Actions cache key (#51789)
The specified default cache key `**.[jt]s` does not consider any files in folders, while `**/*.[jt]s` recursively includes all files. The same goes for jsx/tsx. Co-authored-by: JJ Kasper <jj@jjsweb.site>
This commit is contained in:
parent
72fdb063ee
commit
6d0d5e313b
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ with:
|
|||
~/.npm
|
||||
${{ github.workspace }}/.next/cache
|
||||
# Generate a new cache whenever packages or source files change.
|
||||
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
|
||||
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.[jt]s', '**/*.[jt]sx') }}
|
||||
# If source files changed but packages didn't, rebuild from a prior cache.
|
||||
restore-keys: |
|
||||
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
|
||||
|
|
Loading…
Reference in a new issue