Skip to content

Commit 2cb4a84

Browse files
haoqunjiangcexbrayat
authored andcommitted
chore: update supported Node.js range
- Dropped Node 20 support as it has reached EOL; - Also advanced the minor version requirements: - Require Node.js 22.18 because type stripping is enabled by default starting from that version - Require Node.js 24.12 because Node 24 went into LTS in 24.11 but type stripping is only marked stable in 24.12. - Added Node.js 26 to CI matrices
1 parent 918983f commit 2cb4a84

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- uses: pnpm/action-setup@91ab88e2619ed1f46221f0ba42d1492c02baf788 # v6
2626
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
2727
with:
28-
node-version: 22
28+
node-version: 24
2929
cache: 'pnpm'
3030
- run: pnpm install
3131
env:
@@ -56,7 +56,7 @@ jobs:
5656
strategy:
5757
matrix:
5858
os: [ubuntu-latest, windows-latest, macos-latest]
59-
node-version: [20, 22, 24]
59+
node-version: [22, 24, 26]
6060
script:
6161
# ----- Build: non-TypeScript projects -----
6262
- name: 'build (non-TS)'
@@ -96,15 +96,15 @@ jobs:
9696
- name: 'format (prettier)'
9797
run: pnpm --filter '*prettier*' format
9898
exclude:
99-
# Node version issues are rarely platform-specific, so only test Node 20/22 on Ubuntu
100-
- os: windows-latest
101-
node-version: 20
99+
# Node version issues are rarely platform-specific, so skip the non-active-LTS Node.js versions on Windows/macOS
102100
- os: windows-latest
103101
node-version: 22
104-
- os: macos-latest
105-
node-version: 20
106102
- os: macos-latest
107103
node-version: 22
104+
- os: windows-latest
105+
node-version: 26
106+
- os: macos-latest
107+
node-version: 26
108108
runs-on: ${{ matrix.os }}
109109
name: ${{ matrix.script.name }} (${{ matrix.os }}, node ${{ matrix.node-version }})
110110
continue-on-error: ${{ matrix.os == 'windows-latest' }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"zx": "^8.8.5"
5656
},
5757
"engines": {
58-
"node": "^20.19.0 || >=22.12.0"
58+
"node": "^22.18.0 || >=24.12.0"
5959
},
6060
"packageManager": "pnpm@11.1.0"
6161
}

template/base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
"vite-plugin-vue-devtools": "^8.1.2"
1616
},
1717
"engines": {
18-
"node": "^20.19.0 || >=22.12.0"
18+
"node": "^22.18.0 || >=24.12.0"
1919
}
2020
}

0 commit comments

Comments
 (0)