[worker] Move Yarn version from Mise to Corepack#3412
Open
[worker] Move Yarn version from Mise to Corepack#3412
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3412 +/- ##
==========================================
- Coverage 52.54% 52.54% -0.00%
==========================================
Files 806 806
Lines 33610 33615 +5
Branches 6985 6985
==========================================
+ Hits 17657 17658 +1
- Misses 15871 15875 +4
Partials 82 82 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Subscribed to pull request
Generated by CodeMention |
|
⏩ The changelog entry check has been skipped since the "no changelog" label is present. |
douglowder
approved these changes
Feb 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
In #3406 EAS workflow building the worker was not updated to Yarn v4. This breaks building worker.
I tried adding
defaults.tools.yarn: 4.12.0, but this unfortunately is not the way to use Yarn v4 on EAS as I've learned. The right way is using Corepack.However, previously we explicitly did not use Corepack, because
pnpm --versioncheck the worker does in the beginning of its run was failing because it was run withoutcwd, so it was running within worker package which was configured with Yarn.Since we want to use Yarn v4, we need to figure out a way to use Corepack.
How
yarnexecutable like the one we have inuniverse.pnpm --versionto not run inside worker (so it does not error).setup-nodefor specific Node versions in favor of a Mise override.Test plan
mise exec node@20.19.4 -- bash -lc 'corepack enable; yarn --version'=>4.12.0scripts/=>4.12.0mise exec node@20.19.4 -- bash -lc 'corepack enable; yarn workspace @expo/worker test:unit -- runtimeEnvironment.test.ts'