Skip to content

Upgrade to Node 22 #878

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 11, 2025
Merged

Upgrade to Node 22 #878

merged 6 commits into from
Apr 11, 2025

Conversation

dr-bizz
Copy link
Contributor

@dr-bizz dr-bizz commented Mar 27, 2025

Description

In this PR, I have upgraded Node from version 18 to version 22. I have also upgraded Yarn to version 4. Yarn 4 has stricter rules around --immutable-cache, causing us to remove it from the GitHub Actions.

I have also updated the TS ESLint packages, as there was a warning message when running lint.

Changes:

  • node: 18 -> 22
  • yarn: 1 -> 4
  • @typescript-eslint/eslint-plugin: 4 -> 5
  • @typescript-eslint/parser: 4 -> 5
  • Removed --immutable-cache from GHA. The way we could get this to pass is to track all .yarn/cache folder, but this would bloat the repo and the only need for the cache files would be for the GHA, as we use node_modules.

@dr-bizz dr-bizz requested a review from canac March 27, 2025 21:13
@dr-bizz dr-bizz marked this pull request as draft March 28, 2025 13:03
@dr-bizz dr-bizz removed the request for review from canac March 28, 2025 13:03
@dr-bizz dr-bizz requested a review from canac April 10, 2025 14:22
@dr-bizz dr-bizz marked this pull request as ready for review April 10, 2025 14:33
@dr-bizz
Copy link
Contributor Author

dr-bizz commented Apr 10, 2025

I will clean up the commit after approval is completed.

@dr-bizz dr-bizz requested a review from canac April 10, 2025 14:33
Copy link
Contributor

@canac canac left a comment

Choose a reason for hiding this comment

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

Can you also update .node-version? That's the version that Netlify uses to build the site. Unfortunately, it's not smart enough to use .tool-versions, so we have to set it in both places.

Can we also update actions/checkout to v4? If I recall correctly, v2 was causing warnings about running on an old node version.

@dr-bizz dr-bizz requested a review from canac April 10, 2025 18:40
Copy link
Contributor

@canac canac left a comment

Choose a reason for hiding this comment

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

Thanks for your work on this!

@dr-bizz dr-bizz merged commit 7c6d5fd into master Apr 11, 2025
12 checks passed
@dr-bizz dr-bizz deleted the upgrade-node branch April 11, 2025 18:06
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