Skip to content

ci: only pre-approve packages on CI - #2999

Merged
Tommy Nguyen (tido64) merged 1 commit into
trunkfrom
tido/ci-preapproved-packages
Nov 2, 2026
Merged

Tommy Nguyen (tido64) merged 1 commit into
trunkfrom
tido/ci-preapproved-packages

Conversation

@tido64

Copy link
Copy Markdown
Member

Description

Scheduled nightly builds fail because metro-config@0.87.2 (and ob1) are quarantined by npmMinimalAgeGate.

Pre-approval is only needed when testing react-native@nightly or templates on CI, so this moves the list from .yarnrc.yml to a workflow-level YARN_NPM_PREAPPROVED_PACKAGES env var in build.yml. Yarn splits array settings from env vars on commas. It also adds metro, metro-*, and ob1.

Platforms affected

  • Android
  • iOS
  • macOS
  • visionOS
  • Windows

Test plan

export YARN_NPM_PREAPPROVED_PACKAGES="@react-native-community/*,@react-native/*,flow-estree,flow-parser,hermes-compiler,metro,metro-*,ob1,react-native,react-native-macos,react-native-windows"
cd packages/app
node --run set-react-version -- nightly
yarn install --mode=update-lockfile  # resolves without YN0016

Without the env var, yarn config get npmPreapprovedPackages returns [] locally.

@github-actions github-actions Bot added platform: Android This affects Android platform: iOS This affects iOS platform: macOS This affects macOS platform: Windows This affects Windows platform: visionOS labels Nov 2, 2026
@tido64
Tommy Nguyen (tido64) force-pushed the tido/ci-preapproved-packages branch 2 times, most recently from f9cb56c to 51adab5 Compare November 2, 2026 12:07
@tido64
Tommy Nguyen (tido64) force-pushed the tido/ci-preapproved-packages branch from 51adab5 to 8e59db4 Compare November 2, 2026 12:33
@tido64
Tommy Nguyen (tido64) merged commit eb18e12 into trunk Nov 2, 2026
24 checks passed
@tido64
Tommy Nguyen (tido64) deleted the tido/ci-preapproved-packages branch November 2, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform: Android This affects Android platform: iOS This affects iOS platform: macOS This affects macOS platform: visionOS platform: Windows This affects Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant