Skip to content

Chore: Update to Node 24 - #5506

Merged
mao-sz merged 3 commits into
TheOdinProject:mainfrom
santichausis:chore/update-node-24
Nov 16, 2026
Merged

mao-sz merged 3 commits into
TheOdinProject:mainfrom
santichausis:chore/update-node-24

Conversation

@santichausis

@santichausis santichausis commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Because

Node 20 is EOL. The Node version targeted by the CI workflow should move to Node 24, the current LTS. Production on Heroku is already running Node ^24 (there is no engines field in package.json), so this brings the repo's own configuration in line with what is actually deployed. The .node-version file was only used by webpacker, which has long been removed, and nothing else reads it, so it is removed rather than bumped.

This PR

  • Updates both actions/setup-node@v6 steps in .github/workflows/ci.yml from node-version: 20 to node-version: 24
  • Removes the unused .node-version file

Issue

Closes #5409

Additional Information

CI passes on Node 24. Also verified locally on Node 24.18.0: yarn install (native deps esbuild, @parcel/watcher and @sentry/cli rebuild without errors), yarn build, yarn build:css, yarn lint, yarn stylelint, bin/rails spec:fast (722 examples, 0 failures) and bin/rails spec:system (89 examples, 0 failures; these precompile assets with yarn build).

As discussed in the issue, pinning the version via engines / devEngines in package.json (and having CI read it with node-version-file) is left out of this PR so that getting to Node 24 stays the priority.

Pull Request Requirements

  • I have thoroughly read and understand The Odin Project Contributing Guide
  • The title of this PR follows the keyword: brief description of change format, using one of the following keywords:
    • Feature - adds new or amends existing user-facing behavior
    • Chore - changes that have no user-facing value, refactors, dependency bumps, etc
    • Fix - bug fixes
  • The Because section summarizes the reason for this PR
  • The This PR section has a bullet point list describing the changes in this PR
  • I have verified all tests and linters pass after making these changes.
  • If this PR addresses an open issue, it is linked in the Issue section
  • If applicable, this PR includes new or updated automated tests

Node 20 is EOL. Bump the version in .node-version and in both
actions/setup-node steps in the CI workflow to Node 24 (current LTS).
@github-project-automation github-project-automation Bot moved this to 📋 Backlog / Ideas in Main Site Oct 18, 2026

@mao-sz mao-sz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We can actually remove the .node-version file. It was previously used by webpacker but that package has long been removed and AFAIK, nothing else we have requires Node v20 (or even reads .node-version).

@github-project-automation github-project-automation Bot moved this from 📋 Backlog / Ideas to 🏗 In progress in Main Site Nov 4, 2026
It was only used by webpacker, which has long been removed, and nothing
else in the repo reads it. The Node version used in CI is set explicitly
in the workflow.
@santichausis

Copy link
Copy Markdown
Contributor Author

Thanks @mao-sz, good catch. I've removed .node-version (nothing else in the repo reads it) and updated the PR description to match. The remaining change is just the two setup-node steps in ci.yml bumped to Node 24.

@mao-sz

mao-sz commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

CI currently failing is known - discussing with team as to way forward

@github-project-automation github-project-automation Bot moved this from 🏗 In progress to 👀 In review in Main Site Nov 16, 2026
@mao-sz
mao-sz merged commit ce1f98a into TheOdinProject:main Nov 16, 2026
5 checks passed
@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in Main Site Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Chore: Update to Node 24

2 participants