Skip to content

Commit

Permalink
Fix GHA for Publish bumped packages (facebook#44760)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#44760

This change fixes the gha that should publish bumped packages.

## Changelog
[Internal] - Fix CI

Reviewed By: huntie

Differential Revision: D58084675

fbshipit-source-id: 16639f5413dbe2a7182561a1de911194ae52a161
  • Loading branch information
cipolleschi authored and facebook-github-bot committed Jun 3, 2024
1 parent be38fbb commit 84ff977
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions .github/workflows/publish_bumped_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,20 @@ on:
- "*-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
publish_bumped_packages:
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: Run Yarn Install
run: yarn install
- name: Build packages
run: 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 84ff977

Please sign in to comment.