From b8dbcb4110c57392c625f579806f1d77448ef18d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Tue, 29 Aug 2023 00:47:24 +0800 Subject: [PATCH] ci: upgrade node version (#237) --- .github/workflows/ci.yml | 14 +++++++------- .github/workflows/publish.yml | 6 +++--- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc10acd3..920ea82d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,13 +35,13 @@ jobs: strategy: matrix: os: [ubuntu-latest] - node_version: [14, 16, 18] + node_version: [14, 16, 18, 20] include: # Active LTS + other OS - os: macos-latest - node_version: 16 + node_version: 18 - os: windows-latest - node_version: 16 + node_version: 18 fail-fast: false name: "Build&Test: node-${{ matrix.node_version }}, ${{ matrix.os }}" @@ -94,19 +94,19 @@ jobs: if: github.repository == 'vitejs/vite-plugin-vue' timeout-minutes: 10 runs-on: ubuntu-latest - name: "Lint: node-16, ubuntu-latest" + name: "Lint: node-LTS, ubuntu-latest" steps: - uses: actions/checkout@v3 with: fetch-depth: 0 - name: Install pnpm - uses: pnpm/action-setup@v2.4.0 + uses: pnpm/action-setup@v2 - - name: Set node version to 16 + - name: Set node version to LTS uses: actions/setup-node@v3 with: - node-version: 16 + node-version: lts/* cache: "pnpm" - name: Install deps diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fd6dc6d5..f493a223 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -18,12 +18,12 @@ jobs: uses: actions/checkout@v3 - name: Install pnpm - uses: pnpm/action-setup@v2.4.0 + uses: pnpm/action-setup@v2 - - name: Set node version to 16.x + - name: Set node version to LTS uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: lts/* registry-url: https://registry.npmjs.org/ cache: "pnpm"