-
Notifications
You must be signed in to change notification settings - Fork 1
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
Upgrade to Node 22 #878
Conversation
I will clean up the commit after approval is completed. |
There was a problem hiding this 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.
There was a problem hiding this 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!
…yarn as we don't track the cache in the repo.
…he, so there is no point having this test.
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
--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.