From cf2c0f09ecc1a7962b42adccc103f990c65b6c56 Mon Sep 17 00:00:00 2001 From: Arya Emami Date: Sat, 15 Mar 2025 17:31:05 -0500 Subject: [PATCH] chore: update CI Node.js version to 22 --- .codesandbox/ci.json | 2 +- .github/workflows/test.yml | 16 +++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.codesandbox/ci.json b/.codesandbox/ci.json index bdb4113..b9bc0f4 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/test.yml b/.github/workflows/test.yml index 39a123c..16341b8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: ['20.x'] + node: ['22.x'] steps: - name: Checkout repo @@ -48,7 +48,7 @@ jobs: strategy: fail-fast: false matrix: - node: ['20.x'] + node: ['22.x'] steps: - name: Checkout repo uses: actions/checkout@v4 @@ -89,7 +89,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'] steps: @@ -135,7 +135,7 @@ jobs: strategy: fail-fast: false matrix: - node: ['20.x'] + node: ['22.x'] example: [ 'cra4', @@ -210,11 +210,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