diff --git a/errors/no-cache.md b/errors/no-cache.md index a580397ef99bd..4697b81b6eb32 100644 --- a/errors/no-cache.md +++ b/errors/no-cache.md @@ -82,7 +82,7 @@ uses: actions/cache@v2 with: path: ${{ github.workspace }}/.next/cache # Generate a new cache whenever packages or source files change. - key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[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') }}-