Skip to content

Commit 8a8f4aa

Browse files
Use Node.js 22 in refresh workflows to fix .mts loader errors (#3269)
## Summary - Bumps Node.js from 20 to 22 in the three refresh workflows (`refresh-wordpress-major-and-beta`, `refresh-sqlite-integration`, `refresh-wordpress-nightly`) - Node.js 20.20.0 does not support `.mts` files as `--loader` arguments, causing `ERR_UNKNOWN_FILE_EXTENSION` errors - Node.js 22 is the lowest major version with native TypeScript/`.mts` support ## Failing CI runs - [Refresh WordPress Major&Beta](https://github.com/WordPress/wordpress-playground/actions/runs/21967488700/job/63460931335) - [Refresh SQLite plugin](https://github.com/WordPress/wordpress-playground/actions/runs/21967500743/job/63460969582) - [Refresh WordPress Nightly](https://github.com/WordPress/wordpress-playground/actions/runs/21967503750/job/63460978762) ## Test plan - [ ] Verify the three refresh workflows pass with Node.js 22
1 parent ceaa432 commit 8a8f4aa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/refresh-sqlite-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
submodules: true
3636
- uses: ./.github/actions/prepare-playground
3737
with:
38-
node-version: 20
38+
node-version: 22
3939
- name: 'Refresh the SQLite bundle'
4040
shell: bash
4141
run: npx nx bundle-sqlite-database playground-wordpress-builds

.github/workflows/refresh-wordpress-major-and-beta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
submodules: true
4141
- uses: ./.github/actions/prepare-playground
4242
with:
43-
node-version: 20
43+
node-version: 22
4444
- name: 'Recompile WordPress'
4545
id: build
4646
shell: bash

.github/workflows/refresh-wordpress-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
submodules: true
3434
- uses: ./.github/actions/prepare-playground
3535
with:
36-
node-version: 20
36+
node-version: 22
3737
- name: 'Recompile WordPress'
3838
shell: bash
3939
run: npx nx bundle-wordpress:nightly playground-wordpress-builds

0 commit comments

Comments
 (0)