From 64ea072b0932e08443a2be984c9cb27a4f734bc2 Mon Sep 17 00:00:00 2001 From: JaeYeopHan Date: Wed, 14 Aug 2024 12:19:13 +0900 Subject: [PATCH 1/4] env: change to asdf from nvm --- .nvmrc | 1 - .tool-versions | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 .nvmrc create mode 100644 .tool-versions 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 From 139ddd67233720e09afc3758f262d3ad59a6d425 Mon Sep 17 00:00:00 2001 From: JaeYeopHan Date: Wed, 14 Aug 2024 12:19:23 +0900 Subject: [PATCH 2/4] env: add nodejs 20 to ci workflow --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f29c6872..2ef212bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: ['18', '20'] + node: ['18', '20', '22'] name: ci steps: - name: Checkout From d25ea6a7be3d9d0d26c1f72e097276dfe49a8613 Mon Sep 17 00:00:00 2001 From: JaeYeopHan Date: Wed, 14 Aug 2024 12:29:11 +0900 Subject: [PATCH 3/4] env: update github action version --- .github/actions/setup-node/action.yml | 9 --------- .github/workflows/ci.yml | 8 +++++--- 2 files changed, 5 insertions(+), 12 deletions(-) delete mode 100644 .github/actions/setup-node/action.yml 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/ci.yml b/.github/workflows/ci.yml index 2ef212bf..67acd032 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,12 +8,14 @@ jobs: strategy: matrix: node: ['18', '20', '22'] - name: ci + 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 From 276379a58b86c339c8460949d2b8568d9b9be1be Mon Sep 17 00:00:00 2001 From: JaeYeopHan Date: Wed, 14 Aug 2024 12:37:57 +0900 Subject: [PATCH 4/4] env: add node version to build test --- .github/workflows/build-examples.yml | 7 ++++++- .github/workflows/build-website.yml | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) 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