Skip to content

Use Node.js 22 in refresh workflows to fix .mts loader errors#3269

Merged
brandonpayton merged 1 commit intotrunkfrom
wordpress/fix-wp-major-beta-update-workflow
Feb 13, 2026
Merged

Use Node.js 22 in refresh workflows to fix .mts loader errors#3269
brandonpayton merged 1 commit intotrunkfrom
wordpress/fix-wp-major-beta-update-workflow

Conversation

@brandonpayton
Copy link
Member

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

Test plan

  • Verify the three refresh workflows pass with Node.js 22

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.
Copilot AI review requested due to automatic review settings February 13, 2026 01:48
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@brandonpayton brandonpayton merged commit 8a8f4aa into trunk Feb 13, 2026
37 checks passed
@brandonpayton brandonpayton deleted the wordpress/fix-wp-major-beta-update-workflow branch February 13, 2026 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments