-
-
Notifications
You must be signed in to change notification settings - Fork 153
chore: explicitly install Corepack in CI #452
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
Following Node.js decision not to include Corepack in future versions of Node.js, to prevent any surprises and benefit from potential fixes in Corepack, I suggest we install the latest version of Corepack explicitly on CI instead of just hoping it's there.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
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.
Pull request overview
This PR updates CI workflows to explicitly install Corepack via npm, anticipating future Node.js versions that no longer bundle Corepack by default and aiming to keep package manager tooling stable on CI.
Changes:
- Replace direct
corepack enablecalls with an explicitInstall Corepackstep in the main CI workflow. - Apply the same explicit Corepack installation pattern to the Lunaria workflow.
- Apply the same explicit Corepack installation pattern to the autofix workflow.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| .github/workflows/lunaria.yml | Adds a named step to install Corepack before setting up Node and running pnpm for the Lunaria overview job. |
| .github/workflows/ci.yml | Adds named steps to install Corepack before Node setup in all CI jobs (lint, test, browser, a11y, knip) that rely on pnpm. |
| .github/workflows/autofix.yml | Adds a named step to install Corepack before Node setup in the autofix workflow, which also uses pnpm. |
|
merging #455, thank you! |
Note
This PR has an alternative: #455
Following Node.js decision not to include Corepack in future versions of Node.js, to prevent any surprises and benefit from potential fixes in Corepack, I suggest we install the latest version of Corepack explicitly on CI instead of just hoping it's there.