Skip to content

[worker] Move Yarn version from Mise to Corepack#3412

Open
sjchmiela wants to merge 14 commits intomainfrom
stanley/eas-workflows-yarn-4-12
Open

[worker] Move Yarn version from Mise to Corepack#3412
sjchmiela wants to merge 14 commits intomainfrom
stanley/eas-workflows-yarn-4-12

Conversation

@sjchmiela
Copy link
Contributor

@sjchmiela sjchmiela commented Feb 18, 2026

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 --version check the worker does in the beginning of its run was failing because it was run without cwd, 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

  • Enabled Corepack.
  • Set up yarn executable like the one we have in universe.
  • Changed pnpm --version to not run inside worker (so it does not error).
  • Removed setup-node for specific Node versions in favor of a Mise override.

Test plan

@sjchmiela sjchmiela added the no changelog PR that doesn't require a changelog entry label Feb 18, 2026
@sjchmiela sjchmiela changed the title [worker] Pin Yarn version via workflow defaults [worker] Set workflow default Yarn to 4.12.0 Feb 18, 2026
@codecov
Copy link

codecov bot commented Feb 18, 2026

Codecov Report

❌ Patch coverage is 33.33333% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.54%. Comparing base (3716542) to head (87967f4).

Files with missing lines Patch % Lines
packages/worker/src/external/analytics.ts 11.12% 8 Missing ⚠️
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sjchmiela sjchmiela changed the title [worker] Set workflow default Yarn to 4.12.0 [worker] Enable Corepack and pin Yarn in EAS workflow Feb 18, 2026
@github-actions
Copy link

Subscribed to pull request

File Patterns Mentions
**/* @douglowder

Generated by CodeMention

@sjchmiela sjchmiela changed the title [worker] Enable Corepack and pin Yarn in EAS workflow [worker] Harden package-manager handling with Corepack Feb 18, 2026
@sjchmiela sjchmiela changed the title [worker] Harden package-manager handling with Corepack [worker] Move Yarn version from Mise to Corepack Feb 18, 2026
@github-actions
Copy link

⏩ The changelog entry check has been skipped since the "no changelog" label is present.

@sjchmiela sjchmiela requested a review from douglowder February 18, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no changelog PR that doesn't require a changelog entry

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments