Summary: This diff sets all package version to "0.0.0" except of the root package and changes the bump script to only bump version in the root package. This should reduce possibility of conflicts on release diffs. Anyway we always use the same version for all of our packages, so we can only set it to the root. Before npm publishing we will set all package versions to the same number as in the root package (we actually already do that) so there will be no differences except we won't need to bump version in more than 100 packages each release. Reviewed By: mweststrate Differential Revision: D25162373 fbshipit-source-id: 02fe401bee72845339c67925c130027bdaee559d
31 lines
711 B
YAML
31 lines
711 B
YAML
name: Publish NPM
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
workflow_dispatch:
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: desktop/
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '12.x'
|
|
- name: Install
|
|
run: yarn
|
|
- name: Set versions
|
|
run: yarn bump-versions
|
|
- name: Set up npm token
|
|
run: echo "//registry.yarnpkg.com/:_authToken=${{ secrets.FLIPPER_NPM_TOKEN }}" >> ~/.npmrc
|
|
- name: Publish packages
|
|
run: yarn publish-packages
|
|
- name: Publish React Native
|
|
run: yarn publish
|
|
working-directory: react-native/react-native-flipper
|