From 04ff06340f846f359211108d2518ed34cf6703aa Mon Sep 17 00:00:00 2001 From: Tommy Nguyen <4123478+tido64@users.noreply.github.com> Date: Fri, 2 Oct 2026 11:41:17 +0200 Subject: [PATCH] chore: pre-approve `react-native` related packages --- .github/actions/init-test-app/action.yml | 4 ---- .github/actions/setup-react-native/action.yml | 4 ---- .yarnrc.yml | 9 ++++++++- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/.github/actions/init-test-app/action.yml b/.github/actions/init-test-app/action.yml index 0d591cdc1..77379bbca 100644 --- a/.github/actions/init-test-app/action.yml +++ b/.github/actions/init-test-app/action.yml @@ -6,10 +6,6 @@ inputs: runs: using: composite steps: - - name: Disable minimum age gate - run: | - yarn config unset npmMinimalAgeGate - shell: bash - name: Install run: | scripts/install-test-template.sh --version highest ${{ inputs.arguments }} diff --git a/.github/actions/setup-react-native/action.yml b/.github/actions/setup-react-native/action.yml index b3ae25f11..87250608e 100644 --- a/.github/actions/setup-react-native/action.yml +++ b/.github/actions/setup-react-native/action.yml @@ -7,10 +7,6 @@ inputs: runs: using: composite steps: - - name: Disable minimum age gate - run: | - yarn config unset npmMinimalAgeGate - shell: bash - name: Set up react-native@${{ inputs.version }} run: | rm example/ios/Podfile.lock diff --git a/.yarnrc.yml b/.yarnrc.yml index 33072a992..79e99d85c 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -40,7 +40,14 @@ logFilters: - code: YN0069 # This rule seems redundant when applied on the original package level: error nodeLinker: pnpm -npmMinimalAgeGate: 7d +npmMinimalAgeGate: 1w +npmPreapprovedPackages: + - "@react-native-community/*" + - "@react-native/*" + - hermes-compiler + - react-native + - react-native-macos + - react-native-windows npmRegistryServer: "https://registry.npmjs.org" packageExtensions: appium@3: