Skip to content

Commit 318db54

Browse files
antonisclaude
andauthored
ci: Move CI off end-of-life Node versions to Node 22 (#6927)
Node 18 (EOL April 2025) and Node 20 (EOL April 2026) are replaced with Node 22 across all workflows and the root Volta pin. The repo's own react-native 0.88 dev dependency requires Node ^22.13.0, so the Node 18 jobs were running an unsupported combination. The Volta yarn pin is aligned with packageManager (yarn 4.17.0). Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 08b79dd commit 318db54

8 files changed

Lines changed: 19 additions & 19 deletions

File tree

‎.github/workflows/buildandtest.yml‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
2727
with:
2828
package-manager-cache: false
29-
node-version: 18
29+
node-version: 22
3030
cache: 'yarn'
3131
cache-dependency-path: yarn.lock
3232
- name: Install Dependencies
@@ -45,7 +45,7 @@ jobs:
4545
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
4646
with:
4747
package-manager-cache: false
48-
node-version: 18
48+
node-version: 22
4949
cache: 'yarn'
5050
cache-dependency-path: yarn.lock
5151
- name: Install Dependencies
@@ -68,7 +68,7 @@ jobs:
6868
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
6969
with:
7070
package-manager-cache: false
71-
node-version: 18
71+
node-version: 22
7272
cache: 'yarn'
7373
cache-dependency-path: yarn.lock
7474
- uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
@@ -139,7 +139,7 @@ jobs:
139139
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
140140
with:
141141
package-manager-cache: false
142-
node-version: 18
142+
node-version: 22
143143
cache: 'yarn'
144144
cache-dependency-path: yarn.lock
145145
- name: Install Dependencies
@@ -163,7 +163,7 @@ jobs:
163163
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
164164
with:
165165
package-manager-cache: false
166-
node-version: 18
166+
node-version: 22
167167
cache: 'yarn'
168168
cache-dependency-path: yarn.lock
169169
- uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
@@ -208,7 +208,7 @@ jobs:
208208
steps:
209209
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
210210
with:
211-
node-version: 18
211+
node-version: 22
212212
- name: Download tarball artifacts
213213
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8
214214
with:
@@ -293,7 +293,7 @@ jobs:
293293
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
294294
with:
295295
package-manager-cache: false
296-
node-version: 18
296+
node-version: 22
297297
cache: 'yarn'
298298
cache-dependency-path: yarn.lock
299299
- name: Install Dependencies
@@ -324,7 +324,7 @@ jobs:
324324
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
325325
with:
326326
package-manager-cache: false
327-
node-version: 18
327+
node-version: 22
328328
cache: 'yarn'
329329
cache-dependency-path: yarn.lock
330330
- name: Install Dependencies
@@ -353,7 +353,7 @@ jobs:
353353
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
354354
with:
355355
package-manager-cache: false
356-
node-version: 18
356+
node-version: 22
357357
cache: 'yarn'
358358
cache-dependency-path: yarn.lock
359359
- name: Install Dependencies

‎.github/workflows/codegen.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
4141
with:
4242
package-manager-cache: false
43-
node-version: 18
43+
node-version: 22
4444
cache: 'yarn'
4545
cache-dependency-path: yarn.lock
4646
- uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0

‎.github/workflows/e2e-v2.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
if: ${{ steps.platform-check.outputs.skip != 'true' }}
138138
with:
139139
package-manager-cache: false
140-
node-version: ${{ startsWith(matrix.rn-version, '0.71') && '20' || '22' }}
140+
node-version: 22
141141
cache: "yarn"
142142
cache-dependency-path: yarn.lock
143143

‎.github/workflows/ios-crash-screenshot-no-freeze.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
5555
with:
5656
package-manager-cache: false
57-
node-version: 20
57+
node-version: 22
5858
cache: "yarn"
5959
cache-dependency-path: yarn.lock
6060

‎.github/workflows/native-tests.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
4545
with:
4646
package-manager-cache: false
47-
node-version: 18
47+
node-version: 22
4848
cache: "yarn"
4949
cache-dependency-path: yarn.lock
5050

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
3939
with:
4040
package-manager-cache: false
41-
node-version: 20
41+
node-version: 22
4242
cache: yarn
4343
cache-dependency-path: yarn.lock
4444

‎.github/workflows/sample-application-expo.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
6161
with:
6262
package-manager-cache: false
63-
node-version: 20
63+
node-version: 22
6464
cache: "yarn"
6565
cache-dependency-path: yarn.lock
6666

@@ -157,7 +157,7 @@ jobs:
157157
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
158158
with:
159159
package-manager-cache: false
160-
node-version: 20
160+
node-version: 22
161161
cache: "yarn"
162162
cache-dependency-path: yarn.lock
163163

@@ -226,7 +226,7 @@ jobs:
226226
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v6
227227
with:
228228
package-manager-cache: false
229-
node-version: 20
229+
node-version: 22
230230
cache: "yarn"
231231
cache-dependency-path: yarn.lock
232232

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
"samples/expo"
5555
],
5656
"volta": {
57-
"node": "18.20.8",
58-
"yarn": "3.6.4"
57+
"node": "22.22.2",
58+
"yarn": "4.17.0"
5959
},
6060
"//": [
6161
"Appium has a dependency on @xmldom/xmldom@^0.x, which causes chromedrive build to fail yarn install",

0 commit comments

Comments
 (0)