Skip to content

Instantly share code, notes, and snippets.

@kylemocode
Created October 8, 2022 12:59
Show Gist options
  • Save kylemocode/0e0e24bd5c28b8b8ae6717790fbf7876 to your computer and use it in GitHub Desktop.
Save kylemocode/0e0e24bd5c28b8b8ae6717790fbf7876 to your computer and use it in GitHub Desktop.
- uses: actions/cache@v2
with:
path: |
./node_modules
${{ github.workspace }}/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment