From ae40886a0d9b018dfc76789150d7db3a39b7473e Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Fri, 6 Jun 2025 10:39:27 -0700 Subject: [PATCH] Fix misaligned Node versions in CI (#51874) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/51874 Follows D76037015 (and replaces D76129390, accidentally in the Metro repo 😅). Unfortunately, didn't seem to be caught in PR signals. Changelog: [Internal] Reviewed By: cipolleschi Differential Revision: D76133641 fbshipit-source-id: c5e6204dc6ea8d317dc94395430c6b07cf660a0b --- .github/workflows/cache-reaper.yml | 4 ++-- .github/workflows/danger-pr.yml | 2 ++ .github/workflows/monitor-new-issues.yml | 4 +--- .github/workflows/test-all.yml | 2 ++ 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cache-reaper.yml b/.github/workflows/cache-reaper.yml index 472e50cfca4..91ebb083e02 100644 --- a/.github/workflows/cache-reaper.yml +++ b/.github/workflows/cache-reaper.yml @@ -14,7 +14,7 @@ jobs: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - uses: actions/checkout@v4 - - name: Use Node.js 18 - uses: actions/setup-node@v4 + - name: Setup Node.js + uses: ./.github/actions/setup-node - name: Trim the cache run: node scripts/clean-gha-cache.js diff --git a/.github/workflows/danger-pr.yml b/.github/workflows/danger-pr.yml index 2db802350d9..74eb0ec2372 100644 --- a/.github/workflows/danger-pr.yml +++ b/.github/workflows/danger-pr.yml @@ -18,6 +18,8 @@ jobs: if: github.repository == 'facebook/react-native' steps: - uses: actions/checkout@v4 + - name: Setup Node.js + uses: ./.github/actions/setup-node - name: Run yarn install uses: ./.github/actions/yarn-install - name: Danger diff --git a/.github/workflows/monitor-new-issues.yml b/.github/workflows/monitor-new-issues.yml index f5ace495311..fc3d8ae2e4b 100644 --- a/.github/workflows/monitor-new-issues.yml +++ b/.github/workflows/monitor-new-issues.yml @@ -17,9 +17,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: '22' + uses: ./.github/actions/setup-node - name: Install dependencies uses: ./.github/actions/yarn-install - name: Extract next oncall diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml index bd7b526c4ce..99797d317ba 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -196,6 +196,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Setup Node.js + uses: ./.github/actions/setup-node - name: Download App uses: actions/download-artifact@v4 with: