Skip to content

chore(config): centralize node version management in config.json - #6479

Merged
yhabib merged 5 commits into
mainfrom
yhabib/chore/node-sot
Feb 24, 2025
Merged

yhabib merged 5 commits into
mainfrom
yhabib/chore/node-sot

Conversation

@yhabib

@yhabib yhabib commented Feb 23, 2025 •

Copy link
Copy Markdown
Contributor

Motivation

Following up on #6431, we aim to establish a single source of truth for the node version in the project. To remain consistent with other versions, we will use the one defined in config.json.

Note: Some GitHub actions currently use .nvmrc to determine the node version. These will be changed in a follow-up PR.

Changes

  • Removed NODE_VERSION from the Dockerfile as it was not used.
  • Added a script to populate .nvmrc from config.json and exposed it as an npm script.
  • Removes .nvmrc from tracked files since it can now be generated locally.
  • Updated the README with local development instructions and information about .nvmrc.

Tests

  • GitHub actions should run as before.

Todos

  • Add entry to changelog (if necessary).
    Not necessary

@yhabib yhabib changed the title Yhabib/chore/node sot chore(config): centralize node version management in config.json Feb 23, 2025
@yhabib
yhabib marked this pull request as ready for review February 24, 2025 06:37
@yhabib
yhabib requested a review from a team as a code owner February 24, 2025 06:37
Comment thread Dockerfile
@yhabib
yhabib added this pull request to the merge queue Feb 24, 2025
Merged via the queue into main with commit d01e74e Feb 24, 2025
@yhabib
yhabib deleted the yhabib/chore/node-sot branch February 24, 2025 08:52
github-merge-queue Bot pushed a commit that referenced this pull request Feb 24, 2025
…6488)

# Motivation

Following up on #6479, we want to use the Node version defined in
`config.json` throughout our project to maintain a consistent approach
to the Node version.
This PR updates the last two references to `.nvmrc`.

# Changes

- Changes `NODE_VERSION` source from `.nvmrc` to `config.json`.

# Tests

- Actions should run as before.

# Todos

- [ ] Add entry to changelog (if necessary).
Not necessary
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