From cbd76b0b853b4805d7dd8e07ffe82ed6ab79ca14 Mon Sep 17 00:00:00 2001 From: Jbee Date: Wed, 14 Aug 2024 12:42:28 +0900 Subject: [PATCH] env: Nodejs version update to 22 (#343) * env: change to asdf from nvm * env: add nodejs 20 to ci workflow * env: update github action version * env: add node version to build test --- .github/actions/setup-node/action.yml | 9 --------- .github/workflows/build-examples.yml | 7 ++++++- .github/workflows/build-website.yml | 7 ++++++- .github/workflows/ci.yml | 10 ++++++---- .nvmrc | 1 - .tool-versions | 1 + 6 files changed, 19 insertions(+), 16 deletions(-) delete mode 100644 .github/actions/setup-node/action.yml delete mode 100644 .nvmrc create mode 100644 .tool-versions 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