Build: Fix React Native sandbox generation under age gate - #35939
Conversation
Exempt multitars for the Expo template and wire npm min-release-age-exclude for templates with allowlists so the RN CLI scaffold can download its template.
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 13 minutes Limit details: You’ve used all 4 included reviews currently available under your plan. You completed 34 included PR reviews in the past 7 days; at that activity level, included reviews refill at 4 reviews per hour. Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
Comment |
…e-sandbox-age-gate-exemptions Build: Fix React Native sandbox generation under age gate (cherry picked from commit 1e579a6)
Closes https://github.com/storybookjs/storybook/actions/runs/32093433272/job/95580068842
What I did
Fixes the scheduled Generate and publish sandboxes workflow failures for the two React Native Web + Vite templates blocked by the 7-day package age gate:
react-native-web-vite/expo-ts: addmultitarsto the Yarn/npm allowlist. Expo depends on it transitively, and recent releases fall inside the gate window.react-native-web-vite/rn-cli-ts: add a React Native allowlist and write a scratch.npmrcwithmin-release-age-excludeduring scaffold sonpx @react-native-community/cli initcan download@react-native-community/templatewhile the gate stays enabled for everything else.min-release-age-exclude.Checklist for Contributors
Testing
The changes in this PR are covered in the following automated tests:
Manual testing
Caution
This section is mandatory for all contributions. If you believe no manual test is necessary, please state so explicitly. Thanks!
No manual UI testing is needed. To verify end-to-end, re-run the Generate and publish sandboxes workflow after merge (or dispatch it against this branch) and confirm
react-native-web-vite/expo-tsandreact-native-web-vite/rn-cli-tscomplete successfully.Documentation
MIGRATION.MD
Checklist for Maintainers
When this PR is ready for testing, make sure to add
ci:normal,ci:mergedorci:dailyGH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found incode/lib/cli-storybook/src/sandbox-templates.tsDeclare whether manual QA will be needed for this PR during the next release, through
qa:neededorqa:skipMake sure this PR contains one of the labels below:
Available labels
bug: Internal changes that fixes incorrect behavior.maintenance: User-facing maintenance tasks.dependencies: Upgrading (sometimes downgrading) dependencies.build: Internal-facing build tooling & test updates. Will not show up in release changelog.cleanup: Minor cleanup style change. Will not show up in release changelog.documentation: Documentation only changes. Will not show up in release changelog.feature request: Introducing a new feature.BREAKING CHANGE: Changes that break compatibility in some way with current major version.other: Changes that don't fit in the above categories.🦋 Canary release
This PR does not have a canary release associated. You can request a canary release of this pull request by mentioning the
@storybookjs/coreteam here.core team members can create a canary release here or locally with
gh workflow run --repo storybookjs/storybook publish.yml --field pr=<PR_NUMBER>