-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Update to npm 8, pin in package.json via volta and corepack #49941
Conversation
There doesn't seem to be a way to emulate npm 6's odd side-effect behavior to use for updating dependencies automatically. IMO that's good (I hate side effects), but for our action we need something, so I've done what I normally do for "update everything" scripts and just have it remove the lockfile. This should be okay because it runs every day. The only remaining thing to do here is likely to add some sort of documentation that suggests using |
I'm thinking we don't really have to provide any guidance here; I think if people push bad lockfiles to their branches we'll notice and can advise then. |
I have absolutely no idea who's the best to review this. |
Definitely the best endorsement I could ever receive. |
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.
My preferred method of review for this kind of thing is to merge it and see if it causes problems. Seems like you’ve done your research and will recognize if there's some reason we need to roll back.
Thanks for the approval. Do we want to wait for this until after we cut 4.8, or is this low risk enough that it's not going to matter? |
I don’t think this has any impact on release considerations. |
Fixes #49726
But, I'm a bit apprehensive about this just because we have to make sure people have upgraded versions of things.
corepack enable npm
.corepack enable npm
.We'd be better if people just used newer versions of node (16+ ship with npm 8), however, I know many people stick with Node 14 as that's the last version with frame restarting for debugging, and that's why our volta config says what it does.
I have a TODO for the workflow, but I need to wait a few days to be able to see if the command it runs actually changes anything.Otherwise, it's not the right way to update the lockfile. Honestly, it's probably better to just have it delete the lockfile and recreate it from scratch. It's run nightly, so I do not expect conflicts given the frequency of the fixups.