Skip to content

fix: Sync yarn lockfile before upgrading turbo in examples updater#12286

Merged
anthonyshew merged 2 commits intomainfrom
shew/fix-examples-updater
Mar 13, 2026
Merged

fix: Sync yarn lockfile before upgrading turbo in examples updater#12286
anthonyshew merged 2 commits intomainfrom
shew/fix-examples-updater

Conversation

@anthonyshew
Copy link
Copy Markdown
Contributor

Summary

Problem

Yarn Classic refuses to run upgrade when the lockfile is out of sync with package.json, exiting with error Outdated lockfile. Please run 'yarn install' and try again. This broke the with-react-native-web example during the automated post-release bump.

Fix

Added a yarn install step before the upgrade command in both scripts/update-examples-dep.sh and examples/update-turbo.ts so the lockfile is synced before the upgrade runs.

Yarn Classic refuses to run 'upgrade' when the lockfile is out of sync
with package.json. Add a 'yarn install' step before the upgrade command
in both updater scripts to prevent the post-release workflow from failing.
@anthonyshew anthonyshew requested a review from a team as a code owner March 13, 2026 19:26
@anthonyshew anthonyshew requested review from tknickman and removed request for a team March 13, 2026 19:26
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Mar 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
examples-basic-web Ready Ready Preview, Comment, Open in v0 Mar 13, 2026 7:27pm
examples-designsystem-docs Ready Ready Preview, Comment, Open in v0 Mar 13, 2026 7:27pm
examples-gatsby-web Ready Ready Preview, Comment, Open in v0 Mar 13, 2026 7:27pm
examples-kitchensink-blog Ready Ready Preview, Comment, Open in v0 Mar 13, 2026 7:27pm
examples-nonmonorepo Building Building Preview, Comment, Open in v0 Mar 13, 2026 7:27pm
examples-svelte-web Ready Ready Preview, Comment, Open in v0 Mar 13, 2026 7:27pm
examples-tailwind-web Ready Ready Preview, Comment, Open in v0 Mar 13, 2026 7:27pm
examples-vite-web Ready Ready Preview, Comment, Open in v0 Mar 13, 2026 7:27pm
turbo-site Ready Ready Preview, Comment, Open in v0 Mar 13, 2026 7:27pm
turborepo-agents Ready Ready Preview, Comment, Open in v0 Mar 13, 2026 7:27pm

@turbo-orchestrator turbo-orchestrator Bot added the area: examples Improvements or additions to examples label Mar 13, 2026
@anthonyshew anthonyshew enabled auto-merge (squash) March 13, 2026 19:28
@anthonyshew anthonyshew merged commit 4382338 into main Mar 13, 2026
47 checks passed
@anthonyshew anthonyshew deleted the shew/fix-examples-updater branch March 13, 2026 19:34
github-actions Bot added a commit that referenced this pull request Mar 13, 2026
## Release v2.8.18-canary.1

Versioned docs: https://v2-8-18-canary-1.turborepo.dev

### Changes

- release(turborepo): 2.8.17-canary.16 (#12282) (`c921a26`)
- feat: Add `turbo query affected` CLI shorthand (#12283) (`854309d`)
- release(turborepo): 2.8.17 (#12284) (`2e1e26b`)
- chore: Add `turborepo-log` crate to improve our logging situation
(#12285) (`e9434ca`)
- fix: Sync yarn lockfile before upgrading turbo in examples updater
(#12286) (`4382338`)
- fix: Ensure `pkg#task` CLI args are always included in filtered
packages (#12287) (`7e0c584`)
- feat: Wire up turborepo-log with TerminalSink and convert first
warning (#12289) (`48f4009`)

---------

Co-authored-by: Turbobot <turbobot@vercel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: examples Improvements or additions to examples

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant