Skip to content

Regenerate lockfile in ci:version#4230

Merged
trevor-scheer merged 1 commit into
graphql:mainfrom
trevor-scheer:trevor/regenerate-lockfile
May 7, 2026
Merged

Regenerate lockfile in ci:version#4230
trevor-scheer merged 1 commit into
graphql:mainfrom
trevor-scheer:trevor/regenerate-lockfile

Conversation

@trevor-scheer

Copy link
Copy Markdown
Contributor

Summary

ci:version runs yarn changeset version but never yarn install, so the Version Packages PR ends up with a stale yarn.lock. CI's Yarn Dedupe Check (added in #4223) catches this on yarn install --immutable.

Adding yarn install --no-immutable after the version step matches the recipe in other yarn-berry monorepos — e.g. medusajs/medusa and toeverything/blocksuite. Neither changesets/action nor changesets docs mention it.

Why now

#4223 only just added the dedupe check. Before that, stale lockfiles landed quietly on main; the next contributor's local yarn install regenerated them, leaving a stray yarn.lock diff in their PR. Reviewers skip large lockfile diffs.

Test plan

  • Next Version Packages PR includes a yarn.lock diff and passes Yarn Dedupe Check.

`yarn changeset version` rewrites workspace `package.json` files
with new dependency ranges but doesn't refresh `yarn.lock`. The
resulting Version Packages PR ends up with a stale lockfile, which
fails `yarn install --immutable` in CI. Run `yarn install --no-immutable`
right after the version step so the regenerated lockfile is included
in the same PR.
@changeset-bot

changeset-bot Bot commented May 7, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 886c24d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@trevor-scheer trevor-scheer marked this pull request as ready for review May 7, 2026 19:08
@trevor-scheer trevor-scheer enabled auto-merge (squash) May 7, 2026 19:08
@trevor-scheer trevor-scheer merged commit 49d1b9c into graphql:main May 7, 2026
13 checks passed
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