From be38fbb3f895e36f256a25e9dd86ef76a05797c6 Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Mon, 3 Jun 2024 06:14:58 -0700 Subject: [PATCH] Add publish_bumped_packages in GHA Summary: This change introduce the publish_bumped_packages job in GHA as this job was not ported before. This is a porting of [this workflow](https://github.com/facebook/react-native/blob/main/.circleci/configurations/workflows.yml#L128-L135), which calls the [`find_and_publish_bumped_packages`](https://github.com/facebook/react-native/blob/main/.circleci/configurations/jobs.yml#L1278-L1289) which uses the [`build_packages`](https://github.com/facebook/react-native/blob/main/.circleci/configurations/commands.yml#L100-L104) command ## Changelog: [Internal] - Add the `publish_bumped_packages` to GHA Reviewed By: huntie Differential Revision: D58016209 fbshipit-source-id: 3c8cf7bc50eeaf11b00850fc2251183b12b18d20 --- .github/workflows/publish_bumped_packages.yml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/publish_bumped_packages.yml diff --git a/.github/workflows/publish_bumped_packages.yml b/.github/workflows/publish_bumped_packages.yml new file mode 100644 index 00000000000000..45544687865328 --- /dev/null +++ b/.github/workflows/publish_bumped_packages.yml @@ -0,0 +1,23 @@ +name: Publish Bumped Packages + +on: + push: + branches: + - "main" + - "*-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