From 84ff977b3726f14e3c045103e2b7c176cabcc185 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Mon, 3 Jun 2024 07:10:34 -0700 Subject: [PATCH] Fix GHA for Publish bumped packages (#44760) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44760 This change fixes the gha that should publish bumped packages. ## Changelog [Internal] - Fix CI Reviewed By: huntie Differential Revision: D58084675 fbshipit-source-id: 16639f5413dbe2a7182561a1de911194ae52a161 --- .github/workflows/publish_bumped_packages.yml | 31 ++++++++++--------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish_bumped_packages.yml b/.github/workflows/publish_bumped_packages.yml index 45544687865..9744cb0043d 100644 --- a/.github/workflows/publish_bumped_packages.yml +++ b/.github/workflows/publish_bumped_packages.yml @@ -7,17 +7,20 @@ on: - "*-stable" jobs: - runs-on: ubuntu-latest - env: - GHA_NPM_TOKEN: ${{secrets.GHA_NPM_TOKEN}} - steps: - - name: Checkout - uses: actions/checkout@v4.1.1 - - name: Setup node.js - uses: ./.github/actions/setup-node - - name: Build packages - command: yarn build - - name: Set NPM auth token - run: echo "//registry.npmjs.org/:_authToken=$GHA_NPM_TOKEN" > ~/.npmrc - - name: Find and publish all bumped packages - run: node ./scripts/releases-ci/publish-updated-packages.js + publish_bumped_packages: + runs-on: ubuntu-latest + env: + GHA_NPM_TOKEN: ${{ secrets.GHA_NPM_TOKEN }} + steps: + - name: Checkout + uses: actions/checkout@v4.1.1 + - name: Setup node.js + uses: ./.github/actions/setup-node + - name: Run Yarn Install + run: yarn install + - name: Build packages + run: yarn build + - name: Set NPM auth token + run: echo "//registry.npmjs.org/:_authToken=$GHA_NPM_TOKEN" > ~/.npmrc + - name: Find and publish all bumped packages + run: node ./scripts/releases-ci/publish-updated-packages.js