You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow up to the conversation on today's call @handrews
Having only a package.json makes it so the CI installs might install different versions from what was originally installed and tested.
TODO:
remove exclusion from gitignore (if any)
npm i locally, and commit the package-lock.json
update all workflows to use npm ci instead of npm i/install
@baywet all of that sounds good to me. I'll note that our workflows don't all expect the same version of node, which means different packages give different warnings and errors in each workflow, but it somehow more-or-less works.
We don't need to fix that immediately unless the package-lock.json file might be different for different versions of node (I have no idea if npm downgrades some packages to make them work on older versions?)
That's a good callout, the workflows should ALWAYS specify which version of tooling they except through a setup action or equivalent. Otherwise we expose ourselves to the underlying image changing under our feet and things starting to break randomly (happened to me in the past, never fun). I've added setup node actions where I think it was needed. Right now it's not changing the default because the default for node has been 20.x lately (hence all the actions bumping their major version over the last few months)
No, it doesn't downgrade packages dependencies depending on the engine version AFAIK, but it produces warning like those:
(that's from this repo, we might want to reach out to the package owner to understand why the specific version, if anything could be upgraded, and if no answer from them, consider an alternative as this is a very old version of node)
Follow up to the conversation on today's call @handrews
Having only a package.json makes it so the CI installs might install different versions from what was originally installed and tested.
TODO:
npm i
locally, and commit the package-lock.jsonnpm ci
instead ofnpm i/install
I'm happy to take this on if we agree on the content. :)
The text was updated successfully, but these errors were encountered: