diff --git a/.github/workflows/publish_bumped_packages.yml b/.github/workflows/publish_bumped_packages.yml new file mode 100644 index 00000000000..45544687865 --- /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