-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
deploy on node 18 #9385
deploy on node 18 #9385
Conversation
|
🚀 Updated review app: https://pr-9385-badges-shields.fly.dev |
🚀 Updated review app: https://pr-9385-badges-shields.fly.dev |
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 still uses Node 16, shall we update it as well whilst we're at it?
using: 'node16' |
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.
Shouldn't badge-maker/package.json also get updated to node 18?
Fortunately, keeping this in sync with the rest of the codebase doesn't really matter as none of the application code is run by this action. Only the files in https://github.com/badges/shields/tree/master/.github/actions/close-bot
Badge-maker is a package which is used by other applications as well as shields.io, so we try to test against a fairly wide range of node versions (that range needs to include whatever major node version we deploy shields.io on, but ideally it is as wide as we can make it without jumping through too many hoops). At the moment, badge-maker is tested on Node 16, 18 and 20. There's no need to drop compatibility with node 16 for now so |
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.
Looks good to me! 👍🏻
Refs #9297
Refs #9323
Node 16 will reach EOL and stop getting security patches on 11 Sep 2023. I've been running my local dev copy with node 18 on and off recently and not noticed any problems. We've also been running the tests on node 18 in CI for ~a month
I would like to get #9323 reviewed and merged ahead of this one because once we upgrade to node 18, the default npm version is npm 9. Requiring contributors to use node 18 but requiring an old npm version and providing a v2 lockfile is a bit of a crap contributor experience.done + updatedAlternatively, I could smoosh those changes into this PR too.
TODO: update branch protection rules when we merge