Skip to content

Conversation

@MikeMcC399
Copy link
Collaborator

Situation

The current Yarn Modern Installation instructions recommend managing Yarn through Corepack and they now instruct to install Corepack through npm instead of using the version currently still distributed with Node.js. The background is that the Node.js Technical Steering Committee voted to stop distributing the experimental Corepack with Node.js in the long term.

This affects examples, tests and scripts in the repo related to Yarn Modern.

Change

In the appropriate places add npm install -g corepack.

Examples

In both the examples:

Update the README.md file.

In the GitHub Actions workflow scripts:

Corepack needs to be installed twice. The first time is to ensure that the right version of Corepack is available for Yarn caching in actions/setup-node. The second installation is to ensure that Corepack is restored to the latest version in case actions/setup-node installs an older version.

Since this is quite complex, this is not added to the examples in the README. There are currently submissions in actions/setup-node to directly support Corepack which would make this a lot simpler.

MAINTENANCE

In docs/MAINTENANCE.md update the reference to corepack to note that in future it is planned to unbundle it from Node.js.

@cypress-app-bot
Copy link

@MikeMcC399 MikeMcC399 self-assigned this Apr 4, 2025
@MikeMcC399 MikeMcC399 marked this pull request as ready for review April 4, 2025 14:26
@jennifer-shehane jennifer-shehane merged commit d0cc001 into cypress-io:master Apr 4, 2025
76 checks passed
@MikeMcC399 MikeMcC399 deleted the migrate/corepack-npm branch April 4, 2025 15:06
@github-actions
Copy link

🎉 This PR is included in version 6.8.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants