Skip to content

chore: make Yarn v1 version installation explicit#1786

Merged
mschile merged 2 commits into
cypress-io:masterfrom
MikeMcC399:yarn-v1-npm-install
Jun 9, 2026
Merged

chore: make Yarn v1 version installation explicit#1786
mschile merged 2 commits into
cypress-io:masterfrom
MikeMcC399:yarn-v1-npm-install

Conversation

@MikeMcC399

@MikeMcC399 MikeMcC399 commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator

Situation

In scripts/update-cypress-latest-yarn.sh Yarn v1 Classic is globally installed with npm install yarn@latest -g

yarn@latest currently equates to yarn@1.22.22

The Yarn v1 module owner announced plans to re-use the npm yarn module for future Switch usage with Yarn v6.

Change

Replace yarn@latest with yarn@1 to install the latest Yarn v1 Classic version in the scripts/update-cypress-latest-yarn.sh script.

Verify

Execute

./scripts/update-cypress-latest-yarn.sh

and confirm no errors.


Note

Low Risk
Only affects a maintenance script’s global Yarn version specifier; no runtime or CI product logic changes.

Overview
Pins global Yarn Classic installs in scripts/update-cypress-latest-yarn.sh by changing npm install yarn@latest -g to npm install yarn@1 -g in both places (start of the Yarn 1 Classic section and after disabling corepack post–Yarn 4 Modern).

Behavior stays “latest Yarn 1.x,” but the tag avoids accidentally pulling a future non–v1 release if the yarn npm package is republished for Yarn v6.

Reviewed by Cursor Bugbot for commit 343f02f. Bugbot is set up for automated code reviews on this repo. Configure here.

@cypress-app-bot

Copy link
Copy Markdown
Collaborator

@MikeMcC399 MikeMcC399 added the bug Something isn't working label Jun 8, 2026
@MikeMcC399 MikeMcC399 self-assigned this Jun 8, 2026
@MikeMcC399 MikeMcC399 marked this pull request as ready for review June 8, 2026 14:25
@MikeMcC399 MikeMcC399 requested a review from mschile June 8, 2026 14:26
@mschile mschile merged commit 8431e57 into cypress-io:master Jun 9, 2026
87 checks passed
@MikeMcC399 MikeMcC399 deleted the yarn-v1-npm-install branch June 9, 2026 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants