Skip to content

chore: migrate to Corepack-managed Yarn 4#38

Merged
tomcasaburi merged 5 commits intomasterfrom
chore/yarn4-corepack
Mar 19, 2026
Merged

chore: migrate to Corepack-managed Yarn 4#38
tomcasaburi merged 5 commits intomasterfrom
chore/yarn4-corepack

Conversation

@tomcasaburi
Copy link
Member

@tomcasaburi tomcasaburi commented Mar 19, 2026

Summary

  • pin the repo to Yarn 4 via Corepack
  • remove reliance on global Yarn Classic
  • update local setup, CI, and docs for the new workflow

Testing

  • yarn install --immutable
  • yarn build
  • yarn type-check
  • yarn lint
  • yarn prettier
  • yarn test

Note

Medium Risk
Moderate risk because it changes dependency installation semantics in CI and local dev (Corepack + yarn install --immutable), which can cause workflow breakage if the pinned Yarn/lockfile expectations differ across environments.

Overview
Pins the repo to Corepack-managed Yarn 4 by adding packageManager: "yarn@4.13.0", .yarnrc.yml, and .nvmrc, and updates contributor guidance to run nvm + corepack enable.

Updates CI to enable Corepack and switch installs from Yarn Classic (--frozen-lockfile) to Yarn 4’s yarn install --immutable, and expands workflow triggers to include .yarnrc.yml. Adds .yarn/* ignore rules (with Yarn-managed subfolders allowlisted) and lightly aligns hook/docs wording around “Yarn install”.

Written by Cursor Bugbot for commit a3c2184. This will update automatically on new commits. Configure here.

@coderabbitai
Copy link

coderabbitai bot commented Mar 19, 2026

Warning

Rate limit exceeded

@tomcasaburi has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 12 minutes and 8 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 89e94e51-5500-46dc-b80e-d95468d1a247

📥 Commits

Reviewing files that changed from the base of the PR and between 206dc0a and a3c2184.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (12)
  • .codex/hooks/yarn-install.sh
  • .cursor/hooks/yarn-install.sh
  • .github/workflows/CI.yml
  • .gitignore
  • .nvmrc
  • .yarnrc.yml
  • AGENTS.md
  • README.md
  • docs/agent-playbooks/hooks-setup.md
  • docs/mock-content.md
  • docs/testing.md
  • package.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/yarn4-corepack
📝 Coding Plan
  • Generate coding plan for human review comments

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

cache: 'yarn'
- run: HUSKY=0 yarn install --frozen-lockfile --network-concurrency 1
- run: corepack enable
- run: HUSKY=0 yarn install --immutable --network-concurrency 1
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI dependency caching removed without replacement

Medium Severity

The cache: 'yarn' option was removed from actions/setup-node in both the checks and e2e jobs without adding any alternative Yarn dependency caching. Every CI run now does a fresh yarn install with no cache, which can add several minutes per run. The corepack enable step runs after actions/setup-node, but moving it before setup-node and restoring cache: 'yarn' would fix the compatibility issue that likely motivated the removal.

Additional Locations (1)
Fix in Cursor Fix in Web

@tomcasaburi tomcasaburi merged commit ae85d32 into master Mar 19, 2026
7 checks passed
@tomcasaburi tomcasaburi deleted the chore/yarn4-corepack branch March 19, 2026 07:06
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