-
Notifications
You must be signed in to change notification settings - Fork 430
feat: update node version to 24 #7746
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
Conversation
|
|
||
| // Captures `pnpx netlify ...` | ||
| if (pkgFromUserAgent(npm_config_user_agent) === 'pnpm' && npm_command === 'run-script') { | ||
| if (pkgFromUserAgent(npm_config_user_agent) === 'pnpm' && ['run-script', 'run'].includes(npm_command ?? '')) { |
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.
in node 24 on unix this has changed, and pnpm sets npm_command to run instead
e2e/install.e2e.ts
Outdated
| // At this point, the project is built. As long as we limit the prepublish script to built- | ||
| // ins, node_modules are not be necessary to publish the package. | ||
| filter: isNotNodeModules, | ||
| filter: copyFilter, |
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.
when run locally on mac os sometimes it tries to copy a socket-file which crashes the test, added a function which makes sure to skip it
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.
LGTM, thank you!
e2e/install.e2e.ts
Outdated
| const isNodeModules = picomatch('**/node_modules/**') | ||
| const isNotNodeModules = (target: string) => !isNodeModules(target) | ||
| const isNodeModules = picomatch('**/node_modules/**', { dot: true }) | ||
| const copyFilter = async (src: string) => { |
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.
nit: copyFilter doesn't express the intent of this function, at least to me. it sounds like it copies a filter!
| const copyFilter = async (src: string) => { | |
| const shouldCopyCLIFile = async (src: string) => { |
| os: [ubuntu-latest, macOS-latest, windows-2025] | ||
| # Pinning 20.x version as a temporary workaround due to this https://github.com/nodejs/node/issues/52884 | ||
| node-version: ['20.12.2', '22'] | ||
| node-version: ['20.12.2', '22', '24'] |
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.
suggestion: can we delete the copy-pasted integration-win-node-23 job in this file now? 🙏🏼
| matrix: | ||
| os: [ubuntu-latest, macOS-latest, windows-2025] | ||
| node-version: ['20.12.2', '22.x'] | ||
| node-version: ['20.12.2', '22.x', '24'] |
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.
💭 Don't forget to mark the new e2e + integration + unit v24 CI jobs as required when you merge!
* feat: update node version to 24 * fix: fix pnpm on node 24 and running e2e test locally on unix * chore: remove node 23 win test and keep node 22 win test
🎉 Thanks for submitting a pull request! 🎉
Summary
For us to review and ship your PR efficiently, please perform the following steps:
passes our tests.
A picture of a cute animal (not mandatory, but encouraged)