-
Notifications
You must be signed in to change notification settings - Fork 2.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
switch to node 18, unpin netlify-cli
, and workaround npm ci
then being broken
#5180
Conversation
which is now LTS
netlify-cli
, and workaround npm ci
then being broken
Hmm the workaround doesn't seem to be reliable |
which will also update the version in the package-lock
to speed things up
d84876d
to
ce8b304
Compare
because otherwise with node 18 the server is not reachable through the proxy for some reason
package.json | ||
package-lock.json | ||
api-docs/** | ||
dist/** |
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.
Do we need demo/** and docs/**? 🤔
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 do because nothing builds into those folders, so using the versions from the branch in the later stages should be fine
Sorry I just merged it thinking you'd approved and then noticed you hadn't 🤦 |
No worries as long as CI is up. Thanks for addressing this. |
…being broken (#5180) * switch to node 18 which is now LTS * unpin `netlify-cli` * use `npm-ci-please` to workaound `npm ci` being broken fixes #5115 * set version using `npm version` which will also update the version in the package-lock * be selective about what goes in artifact to speed things up * use newer `npm-ci-please` * fix setting version on netlify * fix permission on script * listen on all interfaces for sauce labs because otherwise with node 18 the server is not reachable through the proxy for some reason
This PR will...
Switch to node 18, unpin
netlify-cli
, and workaroundnpm ci
then being broken.netlify/cli#5323 has more info on the
npm ci
issue. Hopefully at some point npm will be fixed.Also uses
npm version
to set the version because previously the version was not being updated in the lock file.And only uploads the files that are needed to the artifact instead of everything to make it faster.
And when running with sauce labs configures the server to listen on all interfaces because otherwise with node 18 for some reason it's not reachable through the proxy.
Why is this Pull Request needed?
Node 18 is now LTS, and a newer
netlify-ci
fixes a security issue.Fixes #5115