Skip to content

Commit 2737d41

Browse files
authored
ci: use node 20 (#327)
1 parent 3c913a2 commit 2737d41

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@ on:
1313
push:
1414
branches:
1515
- main
16-
- release/*
17-
- feat/*
18-
- fix/*
19-
- perf/*
20-
- v1
21-
- v2
22-
- v2.*
23-
- v3.*
2416
pull_request:
2517
workflow_dispatch:
2618

@@ -35,13 +27,13 @@ jobs:
3527
strategy:
3628
matrix:
3729
os: [ubuntu-latest]
38-
node_version: [16, 18, 20]
30+
node_version: [18, 20, 22]
3931
include:
4032
# Active LTS + other OS
4133
- os: macos-latest
42-
node_version: 18
34+
node_version: 20
4335
- os: windows-latest
44-
node_version: 18
36+
node_version: 20
4537
fail-fast: false
4638

4739
name: "Build&Test: node-${{ matrix.node_version }}, ${{ matrix.os }}"
@@ -94,7 +86,7 @@ jobs:
9486
if: github.repository == 'vitejs/vite-plugin-react'
9587
timeout-minutes: 10
9688
runs-on: ubuntu-latest
97-
name: "Lint: node-18, ubuntu-latest"
89+
name: "Lint: node-20, ubuntu-latest"
9890
steps:
9991
- uses: actions/checkout@v4
10092
with:
@@ -103,10 +95,10 @@ jobs:
10395
- name: Install pnpm
10496
uses: pnpm/[email protected]
10597

106-
- name: Set node version to 18
98+
- name: Set node version to 20
10799
uses: actions/setup-node@v4
108100
with:
109-
node-version: 18
101+
node-version: 20
110102
cache: "pnpm"
111103

112104
- name: Install deps

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
- name: Install pnpm
1717
uses: pnpm/[email protected]
1818

19-
- name: Set node version to 16.x
19+
- name: Set node version to 20
2020
uses: actions/setup-node@v4
2121
with:
22-
node-version: 16.x
22+
node-version: 20
2323
registry-url: https://registry.npmjs.org/
2424
cache: "pnpm"
2525

0 commit comments

Comments
 (0)