chore(deps): update react monorepo to v19 (major) #6195
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Request | |
on: | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
validate: | |
name: Validate | |
uses: ./.github/workflows/validate.yml | |
tests: | |
needs: [validate] | |
name: Tests | |
uses: ./.github/workflows/tests.yml | |
test-documentation-build: | |
needs: [validate] | |
name: Test documentation build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Get lts node versions | |
id: get-lts-versions | |
run: scripts/get-lts-versions.sh | |
- name: Use Node.js ${{ steps.get-lts-versions.outputs.last_lts_version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ steps.get-lts-versions.outputs.last_lts_version }} | |
cache: 'yarn' | |
- name: Setup Pages | |
uses: actions/configure-pages@v5 | |
with: | |
# Automatically inject basePath in your Next.js configuration file and disable | |
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized). | |
# | |
# You may remove this line if you want to manage the configuration yourself. | |
static_site_generator: next | |
- name: Restore cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
docs/.next/cache | |
# Generate a new cache whenever packages or source files change. | |
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/docs/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('**/docs/yarn.lock') }}- | |
- name: Install dependencies | |
working-directory: ./docs | |
run: yarn install | |
- name: Build with Next.js | |
working-directory: ./docs | |
run: yarn next build |