1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Next 13.4 and React 18 (#40039)

This commit is contained in:
Peter Bengtsson
2023-08-09 10:30:26 -04:00
committed by GitHub
parent 508c4635a9
commit 33d81b41b7
17 changed files with 429 additions and 4676 deletions

18
.github/actions/cache-nextjs/action.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
# Based on https://nextjs.org/docs/pages/building-your-application/deploying/ci-build-caching#github-actions
name: Cache Nextjs build cache
description: Cache the .next/cache according to best practices
runs:
using: 'composite'
steps:
- name: Cache .next/cache
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # pin @3.3.1
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('**/*.ts', '**/*.tsx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-v13-${{ hashFiles('**/package-lock.json') }}-