From 1f27e3e2e41a90fbb6f25c2bf378eaa703e81892 Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Tue, 15 Apr 2025 07:12:27 -0700 Subject: [PATCH] Add build-types to release workflows (#50396) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50396 Integrates the `yarn build-types` script into our CI workflows. **Notes** - Will validate type generation in future PRs as part of the `test-all` workflow (this has been stable (i.e. successfully runs for our codebase) for the last 3 weeks). - This is not load bearing in production code until D71969602. Changelog: [Internal] Reviewed By: cortinico Differential Revision: D71975705 fbshipit-source-id: a234a05008b5e75976bbd5258948c37fcc1eeb76 --- .github/actions/build-npm-package/action.yml | 3 +++ .github/workflows/publish-bumped-packages.yml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.github/actions/build-npm-package/action.yml b/.github/actions/build-npm-package/action.yml index e68f4c1e35e..dee8bfc0ffc 100644 --- a/.github/actions/build-npm-package/action.yml +++ b/.github/actions/build-npm-package/action.yml @@ -121,6 +121,9 @@ runs: - name: Build packages shell: bash run: yarn build + - name: Build types + shell: bash + run: yarn build-types # Continue with publish steps - name: Set npm credentials if: ${{ inputs.release-type == 'release' || diff --git a/.github/workflows/publish-bumped-packages.yml b/.github/workflows/publish-bumped-packages.yml index d2a2fb7a9b3..1fd45999a64 100644 --- a/.github/workflows/publish-bumped-packages.yml +++ b/.github/workflows/publish-bumped-packages.yml @@ -20,6 +20,8 @@ jobs: uses: ./.github/actions/yarn-install - name: Build packages run: yarn build + - name: Build types + run: yarn build-types - name: Set NPM auth token run: echo "//registry.npmjs.org/:_authToken=$GHA_NPM_TOKEN" > ~/.npmrc - name: Find and publish all bumped packages