Use Node.js 22 in refresh workflows to fix .mts loader errors#3269
Merged
brandonpayton merged 1 commit intotrunkfrom Feb 13, 2026
Merged
Use Node.js 22 in refresh workflows to fix .mts loader errors#3269brandonpayton merged 1 commit intotrunkfrom
brandonpayton merged 1 commit intotrunkfrom
Conversation
Node.js 20.20.0 does not support .mts files as --loader arguments, causing ERR_UNKNOWN_FILE_EXTENSION errors in the WordPress major&beta, SQLite plugin, and WordPress nightly refresh workflows. Bump to Node.js 22, the lowest major version with native TypeScript support.
Contributor
There was a problem hiding this comment.
Pull request overview
Updates Node.js version from 20 to 22 in three GitHub Actions workflows to resolve .mts loader compatibility issues. Node.js 20.20.0 doesn't support .mts files as --loader arguments, causing ERR_UNKNOWN_FILE_EXTENSION errors in CI runs.
Changes:
- Bumped Node.js version from 20 to 22 in all three refresh workflows
- Fixes CI failures related to TypeScript module loading
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/refresh-wordpress-nightly.yml | Updates node-version from 20 to 22 for WordPress nightly refresh workflow |
| .github/workflows/refresh-wordpress-major-and-beta.yml | Updates node-version from 20 to 22 for WordPress major and beta refresh workflow |
| .github/workflows/refresh-sqlite-integration.yml | Updates node-version from 20 to 22 for SQLite integration refresh workflow |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
refresh-wordpress-major-and-beta,refresh-sqlite-integration,refresh-wordpress-nightly).mtsfiles as--loaderarguments, causingERR_UNKNOWN_FILE_EXTENSIONerrors.mtssupportFailing CI runs
Test plan