diff --git a/.github/actions/setup-node/action.yml b/.github/actions/setup-node/action.yml deleted file mode 100644 index 95b17d72..00000000 --- a/.github/actions/setup-node/action.yml +++ /dev/null @@ -1,9 +0,0 @@ -name: Frontend Node.js Setup -description: Setup Node.js for CI/CD -runs: - using: composite - steps: - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version-file: .nvmrc \ No newline at end of file diff --git a/.github/workflows/build-examples.yml b/.github/workflows/build-examples.yml index 10f75950..39353f79 100644 --- a/.github/workflows/build-examples.yml +++ b/.github/workflows/build-examples.yml @@ -5,12 +5,17 @@ on: [pull_request] jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + node: ['18', '20', '22'] name: build steps: - name: Checkout uses: actions/checkout@v2 - name: Setup Node.js - uses: ./.github/actions/setup-node + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} - name: Install dependencies run: yarn install --immutable - name: Build diff --git a/.github/workflows/build-website.yml b/.github/workflows/build-website.yml index 311192d6..518f449f 100644 --- a/.github/workflows/build-website.yml +++ b/.github/workflows/build-website.yml @@ -5,12 +5,17 @@ on: [pull_request] jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + node: ['18', '20', '22'] name: build steps: - name: Checkout uses: actions/checkout@v2 - name: Setup Node.js - uses: ./.github/actions/setup-node + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} - name: Install dependencies run: yarn install --immutable - name: Build diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f29c6872..67acd032 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,13 +7,15 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: ['18', '20'] - name: ci + node: ['18', '20', '22'] + name: CI (Node.js ${{ matrix.node }}) steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Node.js - uses: ./.github/actions/setup-node + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} - name: Install dependencies run: yarn install --immutable - name: Check Type diff --git a/.nvmrc b/.nvmrc deleted file mode 100644 index 2edeafb0..00000000 --- a/.nvmrc +++ /dev/null @@ -1 +0,0 @@ -20 \ No newline at end of file diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 00000000..fb65bd14 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +nodejs 22.6.0 \ No newline at end of file