We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ae29f2 commit f8df189Copy full SHA for f8df189
.github/workflows/cd.yml
@@ -16,10 +16,15 @@ jobs:
16
uses: actions/checkout@master
17
18
- name: Cache
19
- uses: actions/cache@v2
+ uses: actions/cache@v4
20
with:
21
- path: ${{ github.workspace }}/.next/cache
22
- key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}
+ path: |
+ .next/cache
23
+ # Generate a new cache whenever packages or source files change.
24
+ key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
25
+ # If source files changed but packages didn't, rebuild from a prior cache.
26
+ restore-keys: |
27
+ ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
28
29
- name: Setup node env
30
uses: actions/setup-node@v2.1.2
0 commit comments