diff --git a/scripts/utils/yarn.ts b/scripts/utils/yarn.ts index 84d71ece1481..31a96a2f0b2d 100644 --- a/scripts/utils/yarn.ts +++ b/scripts/utils/yarn.ts @@ -63,6 +63,10 @@ export const installYarn2 = async ({ cwd, dryRun, debug }: YarnOptions) => { `yarn set version berry`, `yarn config set enableGlobalCache true`, // Use the global cache so we aren't re-caching dependencies each time we run sandbox `yarn config set checksumBehavior ignore`, + // Yarn 4.15.0 defaults `npmMinimalAgeGate` to 1d, which quarantines freshly + // published Storybook packages from the local Verdaccio registry. Disable + // the gate inside sandboxes so installs aren't blocked. + `yarn config set npmMinimalAgeGate 0`, ]; if (!pnpApiExists) {