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

chore: use corepack to install yarn #323

Merged
merged 1 commit into from
May 2, 2024

Conversation

crazy-max
Copy link
Member

related to docker/bake-action#98

Corepack creates shims next to the node binary, e.g. yarn in our case. The first time we invoke yarn, it knows which version we want by looking at the package.json file:

"packageManager": "yarn@3.6.3",
and is able to download that version and cache it. This avoids having the package manager in the working tree.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max merged commit 53d4eba into docker:main May 2, 2024
40 checks passed
@crazy-max crazy-max deleted the corepack-yarn branch May 2, 2024 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants