Skip to content

Commit 4157b02

Browse files
antonisclaude
andcommitted
fix(ci): Bump Node to 22 in sample app CI workflows
RN 0.84 requires Node >= 22.11. Metro from RN 0.84 uses Array.toReversed() which is not available in Node 18. Bump Node version for the Bundle job in buildandtest.yml and all jobs in sample-application.yml that run Metro bundling. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 158e678 commit 4157b02

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/buildandtest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ jobs:
246246
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
247247
with:
248248
package-manager-cache: false
249-
node-version: 18
249+
node-version: 22
250250
cache: 'yarn'
251251
cache-dependency-path: yarn.lock
252252
- name: Install Dependencies

.github/workflows/sample-application.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
7373
with:
7474
package-manager-cache: false
75-
node-version: 18
75+
node-version: 22
7676
cache: 'yarn'
7777
cache-dependency-path: yarn.lock
7878

@@ -163,7 +163,7 @@ jobs:
163163
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # 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

@@ -238,7 +238,7 @@ jobs:
238238
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
239239
with:
240240
package-manager-cache: false
241-
node-version: 18
241+
node-version: 22
242242
cache: 'yarn'
243243
cache-dependency-path: yarn.lock
244244

@@ -325,7 +325,7 @@ jobs:
325325
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
326326
with:
327327
package-manager-cache: false
328-
node-version: 18
328+
node-version: 22
329329
cache: 'yarn'
330330
cache-dependency-path: yarn.lock
331331

@@ -378,7 +378,7 @@ jobs:
378378
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
379379
with:
380380
package-manager-cache: false
381-
node-version: 18
381+
node-version: 22
382382
cache: 'yarn'
383383
cache-dependency-path: yarn.lock
384384

0 commit comments

Comments
 (0)