Migrate npm publish to OIDC Trusted Publishing via a reusable workflo… #7473
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish Bumped Packages | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| - "*-stable" | |
| jobs: | |
| # Delegate to the shared reusable workflow so every `npm publish` in | |
| # this repo originates from one workflow file — required because npm | |
| # Trusted Publishing only accepts one (org, repo, workflow_filename) | |
| # per package. | |
| publish_bumped_packages: | |
| if: github.repository == 'facebook/react-native' | |
| uses: ./.github/workflows/publish-npm.yml | |
| secrets: inherit | |
| with: | |
| mode: monorepo-packages |