Skip to content
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

Merged
merged 10 commits into from Jan 23, 2023

Conversation

tjenkinson
Copy link
Member

@tjenkinson tjenkinson commented Jan 21, 2023

This PR will...

Switch to node 18, unpin netlify-cli, and workaround npm 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

which is now LTS
@tjenkinson tjenkinson added the CI label Jan 21, 2023
@tjenkinson tjenkinson changed the title switch to node 18 switch to node 18, unpin netlify-cli, and workaround npm ci then being broken Jan 21, 2023
@tjenkinson tjenkinson marked this pull request as ready for review January 21, 2023 16:59
@tjenkinson tjenkinson removed the request for review from robwalch January 21, 2023 17:08
@tjenkinson
Copy link
Member Author

Hmm the workaround doesn't seem to be reliable

@tjenkinson tjenkinson marked this pull request as draft January 21, 2023 17:09
which will also update the version in the package-lock
@tjenkinson tjenkinson force-pushed the node-18 branch 2 times, most recently from d84876d to ce8b304 Compare January 22, 2023 12:34
because otherwise with node 18 the server is not reachable through the proxy for some reason
package.json
package-lock.json
api-docs/**
dist/**
Copy link
Collaborator

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/**? 🤔

Copy link
Member Author

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

@tjenkinson tjenkinson merged commit 87c3a35 into master Jan 23, 2023
@tjenkinson tjenkinson deleted the node-18 branch January 23, 2023 17:13
@tjenkinson
Copy link
Member Author

Sorry I just merged it thinking you'd approved and then noticed you hadn't 🤦

@robwalch
Copy link
Collaborator

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.

robwalch pushed a commit that referenced this pull request Jan 26, 2023
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

newer netlify-cli versions break netlify
2 participants