Build: Disable yarn npmMinimalAgeGate inside sandboxes#34846
Merged
valentinpalkovic merged 1 commit intoMay 20, 2026
Merged
Conversation
Yarn 4.15.0 enables `npmMinimalAgeGate: 1d` by default, which quarantines
freshly-published packages from the local Verdaccio registry and breaks
sandbox creation:
YN0016: create-storybook@npm:10.5.0-alpha.0: All versions satisfying
"10.5.0-alpha.0" are quarantined
Set `npmMinimalAgeGate 0` in the sandbox yarn config to unblock the team
while a more targeted preapproval-based fix is being worked on.
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR modifies ChangesYarn Configuration
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Comment |
Package BenchmarksCommit: The following packages have significant changes to their size or dependencies:
|
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 72 | 72 | 0 |
| Self size | 20.25 MB | 20.30 MB | 🚨 +50 KB 🚨 |
| Dependency size | 36.17 MB | 36.17 MB | 0 B |
| Bundle Size Analyzer | Link | Link |
@storybook/cli
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 203 | 203 | 0 |
| Self size | 908 KB | 908 KB | 🎉 -931 B 🎉 |
| Dependency size | 87.56 MB | 87.61 MB | 🚨 +50 KB 🚨 |
| Bundle Size Analyzer | Link | Link |
@storybook/codemod
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 196 | 196 | 0 |
| Self size | 32 KB | 32 KB | 🚨 +36 B 🚨 |
| Dependency size | 86.05 MB | 86.10 MB | 🚨 +50 KB 🚨 |
| Bundle Size Analyzer | Link | Link |
create-storybook
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 73 | 73 | 0 |
| Self size | 1.08 MB | 1.08 MB | 🎉 -222 B 🎉 |
| Dependency size | 56.43 MB | 56.48 MB | 🚨 +50 KB 🚨 |
| Bundle Size Analyzer | node | node |
JReinhold
approved these changes
May 20, 2026
13 tasks
This was referenced May 20, 2026
29 tasks
Merged
14 tasks
RuBrock
pushed a commit
to RuBrock/storybook
that referenced
this pull request
May 23, 2026
…arn-npm-minimal-age-gate-disable Build: Disable yarn npmMinimalAgeGate inside sandboxes (cherry picked from commit 630f521)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Yarn 4.15.0 enables
npmMinimalAgeGate: 1dby default (yarnpkg/berry#7135), which quarantines freshly-published packages from the local Verdaccio registry and breaks every sandbox build onnext:This PR is a minimal, fast-track unblock for the team: set
npmMinimalAgeGate 0in the sandbox yarn config (scripts/utils/yarn.ts → installYarn2) so freshly-published packages from the local Verdaccio registry aren't quarantined.A follow-up PR (#34842) replaces this with the proper preapproval-based approach (7-day gate for unknown third-party packages, monorepo + satellite packages preapproved). This PR exists so we can ship the unblock immediately without waiting for that one to go green.
Test plan
lit-vite/default-ts)yarn task sandbox --template react-vite/default-ts --start-from autocompletes withoutYN0016Summary by CodeRabbit