elementor/.nvmrc
Bartosz Rękawek 018efd9f8f
Internal: Node.js 20 deprecation warnings in GitHub Actions [ED-23443] (#35861)
## PR Checklist
<!-- 
Please check if your PR fulfills the following requirements:
**Filling out the template is required.** Any pull request that does not
include enough information to be reviewed in a timely manner may be
closed at the maintainers' discretion.
 -->
- [ ] The commit message follows our guidelines:
https://github.com/elementor/elementor/blob/master/.github/CONTRIBUTING.md


## PR Type
What kind of change does this PR introduce?
<!-- Please check the one that applies to this PR using "x" with no
spaces eg: [x]. -->
- [ ] Bugfix
- [ ] Feature
- [ ] Code style update (formatting, local variables)
- [ ] Refactoring (no functional changes, no api changes)
- [ ] Build related changes
- [ ] CI related changes
- [ ] Documentation content changes
- [ ] Other... Please describe:

## Summary

This PR can be summarized in the following changelog entry:

*

## Description
An explanation of what is done in this PR

*

## Test instructions
This PR can be tested by following these steps:

*

## Quality assurance

- [ ] I have tested this code to the best of my abilities
- [ ] I have added unittests to verify the code works as intended
- [ ] Docs have been added / updated (for bug fixes / features)

Fixes #

<!--start_gitstream_placeholder-->
###  PR Description
## 1. Problem & Context

Node.js 20 reached EOL; upgrading to 24.15.0 eliminates deprecation
warnings in CI/CD and aligns with modern tooling. Package.json engine
constraint and GitHub Actions runner configs need consistent updates.

## 2. What Changed (Where)

| Category | Changes |
|----------|---------|
| **GitHub Actions** | Upgraded `actions/checkout@v4→v6`,
`actions/setup-node@v4→v6`, `actions/upload-artifact@v4→v7`,
`actions/cache@v4→v5` across 25+ workflows; Node version `20.x→24.15.0`
|
| **Package configs** | Updated `package.json` and
`packages/package.json` engines from `>=20.19.0` to `>=24.15.0`;
`.nvmrc` from `20.19` to `24.15.0` |
| **ESLint/TypeScript** | Added `@typescript-eslint/parser@^8.6.0` and
`@wordpress/eslint-plugin@^21.1.0` as overrides; updated
eslint-plugin-jest to `^28.14.0` |
| **Code formatting** | Removed spaces before `()` in ~20 locations
(method calls, arrow functions) across test and source files |
| **Config file** | Expanded `.eslintignore` with comprehensive ignore
patterns |

## 3. How It Works

GitHub Actions workflows now invoke Node 24.15.0 via
`actions/setup-node@v6`, which resolves the Node binary and configures
npm cache. Package.json engine field enforces local dev environment
compliance. Whitespace normalization (removing `( )` → `()`) aligns with
ESLint rules, likely enforced by the updated
`@wordpress/eslint-plugin@^21.1.0`.

## 4. Risks

**Low** — mechanical upgrade with no runtime logic changes. ESLint
override pinning jest plugin could create transitive dependency
conflicts if eslint-plugin versions drift; validate against existing
jest test suite. GitHub Actions v7 artifact uploads have stricter
compression semantics—verify retention-days behavior unchanged.

_Generated by LinearB AI and added by gitStream._
<sub>AI-generated content may contain inaccuracies. Please verify before
using.
💡 **Tip:** You can customize your AI Description using **Guidelines**
[Learn
how](https://docs.gitstream.cm/automation-actions/#describe-changes)</sub>
<!--end_gitstream_placeholder-->

---------

Co-authored-by: ElementorBot <48412871+elementorbot@users.noreply.github.com>
Co-authored-by: Svitlana-Dykun <svitlanad@elementor.red>
2026-05-25 09:23:16 +02:00

1 line
No EOL
7 B
Text
Vendored