Skip to content

Commit

Permalink
Add publish_bumped_packages in GHA
Browse files Browse the repository at this point in the history
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
  • Loading branch information
cipolleschi authored and facebook-github-bot committed Jun 3, 2024
1 parent c144382 commit be38fbb
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish_bumped_packages.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit be38fbb

Please sign in to comment.