Skip to content

Use Corepack to manage Yarn instead of committed release - #159

Merged
rtivital merged 1 commit into
masterfrom
corepack-yarn
Oct 4, 2026
Merged

rtivital merged 1 commit into
masterfrom
corepack-yarn

Conversation

@rtivital

@rtivital rtivital commented Oct 4, 2026

Copy link
Copy Markdown
Member

Summary

Yarn is now provided by Corepack from the packageManager field (yarn@4.18.1) in package.json, so the 3.8 MB release file no longer has to live in the repository.

  • Remove .yarn/releases/yarn-4.18.1.cjs
  • Remove yarnPath from .yarnrc.yml
  • Add a corepack enable step to the CI workflow before actions/setup-node, because cache: 'yarn' invokes yarn and would otherwise hit the Yarn 1.x preinstalled on the runner

Local setup

Run corepack enable once per machine. After that yarn resolves to the version pinned in packageManager.

Verification

corepack yarn --version reports 4.18.1 and corepack yarn install --immutable completes on a fresh clone.

@rtivital
rtivital merged commit 966b0ff into master Oct 4, 2026
1 check passed
@rtivital
rtivital deleted the corepack-yarn branch October 4, 2026 10:20
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.

1 participant