Skip to content

Revert "chore(ci): Use yarn for node tests instead of npm (#2612)"#2624

Merged
Lms24 merged 2 commits intomasterfrom
lms/revert-use-yarn-over-npm
Jul 16, 2025
Merged

Revert "chore(ci): Use yarn for node tests instead of npm (#2612)"#2624
Lms24 merged 2 commits intomasterfrom
lms/revert-use-yarn-over-npm

Conversation

@Lms24
Copy link
Copy Markdown
Member

@Lms24 Lms24 commented Jul 16, 2025

So it turns out yarn handles optionalDependencies more strictly than npm: Revert "chore(ci): Use yarn for node tests instead of npm (#2612)"

TLDR: We need to revert installing dependencies with yarn because in contrast to npm, yarn exits the installation of optionalDependencies if the version does not exist. We're running into this edge case on our release branch, where we first bump the dependency versions to the next version to be released and then run tests which try to install this new version.

More details in yarnpkg/berry#2425

@Lms24 Lms24 requested a review from szokeasaurusrex as a code owner July 16, 2025 14:32
@Lms24 Lms24 force-pushed the lms/revert-use-yarn-over-npm branch from 97bad64 to a6cd5ae Compare July 16, 2025 14:35
@Lms24 Lms24 merged commit 88882b4 into master Jul 16, 2025
26 checks passed
@Lms24 Lms24 deleted the lms/revert-use-yarn-over-npm branch July 16, 2025 14:39
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