Skip to content

Commit 1e07129

Browse files
authored
ci: run with node 22, remove 18 (#1355)
Node 18 is deprecated and node 20 is going to in 2026, we have to switch to LTS Changes: - set node 22 by default for most jobs - run tests with node 20 + 22
1 parent 1e49083 commit 1e07129

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

.github/workflows/codegen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: configure node js
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: 20.x
24+
node-version: 22.x
2525

2626
- name: Install Dependencies
2727
run: yarn install --immutable

.github/workflows/pr-title.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
steps:
1515
- uses: actions/checkout@v4
1616

17-
- name: Use Node.js 20
17+
- name: Use Node.js 22
1818
uses: actions/setup-node@v4
1919
with:
20-
node-version: 20
20+
node-version: 22
2121

2222
- name: Cache node_modules
2323
id: cache-modules

.github/workflows/publish-on-merge.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
token: ${{ secrets.GITHUB_TOKEN }}
2020
- uses: actions/setup-node@v4
2121
with:
22-
node-version: '20'
22+
node-version: '22'
2323

2424
- name: Configure Git
2525
run: |

.github/workflows/tests.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Use Node.js
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: '20'
24+
node-version: '22'
2525

2626
- name: Cache node_modules
2727
id: cache-modules
@@ -50,7 +50,7 @@ jobs:
5050
- name: Use Node.js
5151
uses: actions/setup-node@v4
5252
with:
53-
node-version: '20'
53+
node-version: '22'
5454

5555
- name: Cache node_modules
5656
id: cache-modules
@@ -79,7 +79,7 @@ jobs:
7979
- name: Use Node.js
8080
uses: actions/setup-node@v4
8181
with:
82-
node-version: '20'
82+
node-version: '22'
8383

8484
- name: Cache node_modules
8585
id: cache-modules
@@ -103,7 +103,7 @@ jobs:
103103

104104
strategy:
105105
matrix:
106-
node-version: [18, 20]
106+
node-version: [20, 22]
107107

108108
env:
109109
COGNITE_PROJECT: cognitesdk-js

0 commit comments

Comments
 (0)