mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
6c49572ee4
Summary: We had reports from the Community of the RN CI running on forks and causing high costs and bills for them This change should make sure that the most impactful jobs only runs on the React Native CI and not on forks. ## Changelog: [Internal] - Pull Request resolved: https://github.com/facebook/react-native/pull/53707 Test Plan: GHA Reviewed By: cortinico Differential Revision: D82107313 Pulled By: cipolleschi fbshipit-source-id: ff7f418344975e7bb8306a6356d774c26bea3db1
30 lines
835 B
YAML
30 lines
835 B
YAML
name: Publish Bumped Packages
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
- "*-stable"
|
|
|
|
jobs:
|
|
publish_bumped_packages:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'facebook/react-native'
|
|
env:
|
|
GHA_NPM_TOKEN: ${{ secrets.GHA_NPM_TOKEN }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Setup node.js
|
|
uses: ./.github/actions/setup-node
|
|
- name: Run Yarn Install
|
|
uses: ./.github/actions/yarn-install
|
|
- name: Build packages
|
|
run: yarn build
|
|
- name: Build types
|
|
run: yarn build-types --skip-snapshot
|
|
- 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
|