From 717b0d8812202b4fd5866c11a9f41fd1faabaec3 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Wed, 10 Jul 2024 15:02:36 -0400 Subject: [PATCH] [ci] Add check_release_dependencies job ghstack-source-id: e23b995197abca6a54b8c0ab017e9cb48701cd40 Pull Request resolved: https://github.com/facebook/react/pull/30169 --- .github/workflows/runtime_build.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/runtime_build.yml b/.github/workflows/runtime_build.yml index 5305767f6fb52..79cb90da87d26 100644 --- a/.github/workflows/runtime_build.yml +++ b/.github/workflows/runtime_build.yml @@ -145,3 +145,30 @@ jobs: path: | ./build.tgz ./build2.tgz + + check_release_dependencies: + name: Check release dependencies + needs: build_and_lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 18.x + cache: "yarn" + cache-dependency-path: yarn.lock + - name: Restore cached node_modules + uses: actions/cache@v4 + id: node_modules + with: + path: "**/node_modules" + key: ${{ runner.arch }}-${{ runner.os }}-modules-${{ hashFiles('yarn.lock') }} + - run: yarn install --frozen-lockfile + - name: Restore archived build + uses: actions/download-artifact@v4 + with: + path: build + merge-multiple: true + - name: Display structure of build + run: ls -R build + - run: yarn check-release-dependencies