Skip to content

Commit

Permalink
ci: use node 20 (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudBarre committed May 25, 2024
1 parent 3c913a2 commit 2737d41
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@ on:
push:
branches:
- main
- release/*
- feat/*
- fix/*
- perf/*
- v1
- v2
- v2.*
- v3.*
pull_request:
workflow_dispatch:

Expand All @@ -35,13 +27,13 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node_version: [16, 18, 20]
node_version: [18, 20, 22]
include:
# Active LTS + other OS
- os: macos-latest
node_version: 18
node_version: 20
- os: windows-latest
node_version: 18
node_version: 20
fail-fast: false

name: "Build&Test: node-${{ matrix.node_version }}, ${{ matrix.os }}"
Expand Down Expand Up @@ -94,7 +86,7 @@ jobs:
if: github.repository == 'vitejs/vite-plugin-react'
timeout-minutes: 10
runs-on: ubuntu-latest
name: "Lint: node-18, ubuntu-latest"
name: "Lint: node-20, ubuntu-latest"
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -103,10 +95,10 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v4.0.0

- name: Set node version to 18
- name: Set node version to 20
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: "pnpm"

- name: Install deps
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ jobs:
- name: Install pnpm
uses: pnpm/action-setup@v4.0.0

- name: Set node version to 16.x
- name: Set node version to 20
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20
registry-url: https://registry.npmjs.org/
cache: "pnpm"

Expand Down

0 comments on commit 2737d41

Please sign in to comment.