-
Notifications
You must be signed in to change notification settings - Fork 4
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
[DT-1055] Pin version of NodeJS to latest LTS #2734
Conversation
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.
👍🏽
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.
👍🏽
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.
This looks OK, although it's a shame we need to have the version both in package.json
and in all the GitHub workflows.
Also, can you also update DEVNOTES.md
to reflect this change?
] | ||
], | ||
"engines": { | ||
"node": ">=22.11.0" |
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.
Would it be wrong to use an exact match here too?
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.
I was thinking we could do that, but any future developer would get stuck with newer versions of NodeJS (for example patch or minor). Perhaps that's a reasonable trade-off to make. Another thing to think about is that we probably do want to test newer versions, so it might be too much friction to lock it down completely.
It's also in Dockerfile ... I'd love to see a better way to specify this globally. |
I am hoping Dependabot is smart enough to update it everywhere. If not, we can use a slightly different approach and extract the version like we do when installing Homebrew. |
Addresses
https://broadworkbench.atlassian.net/browse/DT-1055
Summary
This will prevent developers from accidentally installing incompatible version of NodeJS for the UI.
Have you read Terra's Contributing Guide lately? If not, do that first.