Skip to content

Conversation

@desrosj
Copy link
Member

@desrosj desrosj commented Jul 28, 2025

Proposed changes

This standardizes the Node.js setup by:

  • Introducing an .nvmrc file specifying the version of Node.js to use when working with the repository.
  • Added engines to the package.json file.
  • Updates the lock file format from version 2 to version 3.

Since 22.x is the current LTS version of Node.js, 22.11.0 is used as the minimum required version since it represents the release that transitioned the version from current to LTS status. The version of npm used (10.9.0) is the version bundled with 22.11.0

The GitHub Action workflows have been updated to ensure the desired version is used for testing.

This addresses PRESS0-2909 and PRESS0-2910.

Type of Change

Production

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Dependency update
  • Refactoring / housekeeping (changes to files not directly related to functionality)

Development

  • Tests
  • Dependency update
  • Environment update / refactoring
  • Documentation Update

Visual

Checklist

  • I have read the CONTRIBUTING doc
  • I have viewed my change in a web-browser
  • Linting and tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

This standardizes the Node.js setup by:
- Introducing an `.nvmrc` file specifying the version of Node.js to use when working with the repository.
- Added `engines` to the `package.json` file.
- Ensures the same version is used consistently in GitHub Actions workflows.
- Updates the lock file format from version 2 to version 3.
@desrosj desrosj self-assigned this Jul 28, 2025
Copilot AI review requested due to automatic review settings July 28, 2025 20:45
Copy link

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

This PR standardizes the Node.js setup across the project by establishing consistent version requirements and updating CI/CD workflows to use Node.js 22.x LTS.

  • Added .nvmrc file and engines field in package.json to specify Node.js 22.11.0 and npm 10.9.0 as minimum versions
  • Updated all GitHub Actions workflows to use Node.js version 22 instead of 20
  • Standardized Node.js version usage across different brand plugin testing workflows

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
package.json Added engines field specifying minimum Node.js and npm versions
.nvmrc Added file specifying Node.js major version 22 for development
.github/workflows/brand-plugin-test.yml Updated all workflow jobs to use Node.js version 22

@github-actions
Copy link

github-actions bot commented Jul 28, 2025

newfold-labs/workflows#84 will change the default value to `22`.

Once all modules have an `.nvmrc` file, that will be used instead.
@desrosj desrosj merged commit 193fa82 into master Aug 11, 2025
9 checks passed
@desrosj desrosj deleted the standardize-node-setup branch August 11, 2025 12:21
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.

3 participants