Skip to content

Commit 15a9536

Browse files
authored
chore: use Node.js 22 for dev env (#3720)
1 parent ad861d2 commit 15a9536

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

.github/workflows/nodejs.yml

+11-4
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
node-version: [16.x, 18.x, 20.x]
18+
node-version: [16.x, 18.x, 20.x, 22.x]
1919

2020
steps:
2121
- uses: actions/checkout@v4
@@ -47,7 +47,7 @@ jobs:
4747
- name: Build swagger-js
4848
run: npm run build
4949
- name: Upload commonjs build artifacts
50-
if: startsWith(matrix.node-version, '20')
50+
if: startsWith(matrix.node-version, '22')
5151
uses: actions/upload-artifact@v4
5252
with:
5353
name: commonjs
@@ -60,10 +60,10 @@ jobs:
6060

6161
steps:
6262
- uses: actions/checkout@v4
63-
- name: Use Node.js 20
63+
- name: Use Node.js 22
6464
uses: actions/setup-node@v4
6565
with:
66-
node-version: 20
66+
node-version: 22
6767

6868
- name: Cache Node Modules
6969
id: cache-node-modules
@@ -116,3 +116,10 @@ jobs:
116116
- name: Run commonjs build artifacts on Node.js 20.x
117117
run: node -p "require('./commonjs')"
118118

119+
- name: Use Node 22.x
120+
uses: actions/setup-node@v4
121+
with:
122+
node-version: 22.x
123+
- name: Run commonjs build artifacts on Node.js 22.x
124+
run: node -p "require('./commonjs')"
125+

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup Node.js
2424
uses: actions/setup-node@v4
2525
with:
26-
node-version: 20
26+
node-version: 22
2727

2828
- name: Install dependencies
2929
run: npm ci

.nvmrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.3.0
1+
22.11.0

docs/development/setting-up.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
### Prerequisites
44

55
- git, any version
6-
- Node.js >=20.3.0
7-
- NPM >=9.6.7
6+
- Node.js >=22.11.0
7+
- NPM >=10.9.0
88

99
### Setting up
1010

0 commit comments

Comments
 (0)