Skip to content

Conversation

@MikeMcC399
Copy link
Contributor

@MikeMcC399 MikeMcC399 commented Apr 14, 2025

Change

Add a .node-version file to the root of the repo with Node.js contents 22 to

  • set the recommended Node.js version to 22 which is equivalent to the latest Node.js Active LTS release
  • allow Node.js version managers, such as n, to more easily synchronize the required version on a local system. node-version-usage contains a list of such Node.js version managers
  • allow the workflow .github/workflows/main.yml to use the defined version through actions/setup-node option node-version-file

Update the readme with information on the meaning of .node-version.

Related

This change was already implemented in the companion repo https://github.com/cypress-io/component-testing-quickstart-apps

    with:
      node-version-file: .node-version

@AtofStryker AtofStryker merged commit a0f79c6 into cypress-io:main Apr 24, 2025
10 checks passed
@MikeMcC399 MikeMcC399 deleted the add/node-version branch April 24, 2025 17:15
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.

2 participants