From 6cb6e65291fb35784d6510b5f20399e6ea2881b8 Mon Sep 17 00:00:00 2001 From: Arya Emami Date: Sat, 15 Mar 2025 17:28:05 -0500 Subject: [PATCH] chore: update CI Node.js version to 22 --- .codesandbox/ci.json | 2 +- .github/workflows/publish.yaml | 2 +- .github/workflows/test.yml | 24 +++++++++++++++++------- 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.codesandbox/ci.json b/.codesandbox/ci.json index bdb411315..b9bc0f48a 100644 --- a/.codesandbox/ci.json +++ b/.codesandbox/ci.json @@ -1,6 +1,6 @@ { "sandboxes": ["vanilla", "vanilla-ts"], - "node": "18", + "node": "20", "buildCommand": "build", "packages": ["."] } diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index d1ad2e04c..10d469c59 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: '20.x' + node-version: '22.x' registry-url: 'https://registry.npmjs.org' cache: 'yarn' - run: yarn install --frozen-lockfile diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1ab517aa5..66c6f5aae 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,14 +7,18 @@ jobs: name: Build and run test Suite runs-on: ubuntu-latest + strategy: + matrix: + node: ['22.x'] + steps: - name: Checkout code uses: actions/checkout@v4 - - name: Set up Node + - name: Use node ${{ matrix.node }} uses: actions/setup-node@v4 with: - node-version: 20.x + node-version: ${{ matrix.node }} cache: 'yarn' - name: Install dependencies @@ -45,7 +49,7 @@ jobs: strategy: fail-fast: false matrix: - node: ['20.x'] + node: ['22.x'] ts: ['5.0', '5.1', '5.2', '5.3', '5.4', '5.5', '5.6', '5.7', '5.8'] react: [ @@ -107,11 +111,17 @@ jobs: strategy: fail-fast: false matrix: - node: ['20.x'] + node: ['22.x'] steps: - name: Checkout repo uses: actions/checkout@v4 + - name: Use node ${{ matrix.node }} + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + cache: 'yarn' + - uses: actions/download-artifact@v4 with: name: package @@ -129,7 +139,7 @@ jobs: strategy: fail-fast: false matrix: - node: ['20.x'] + node: ['22.x'] example: [ 'cra4', @@ -207,7 +217,7 @@ jobs: strategy: fail-fast: false matrix: - node: ['20.x'] + node: ['22.x'] example: ['rr-rsc-context'] defaults: run: @@ -252,7 +262,7 @@ jobs: strategy: fail-fast: false matrix: - node: ['20.x'] + node: ['22.x'] react: [ {