This repository has been archived by the owner on Nov 22, 2024. It is now read-only.
Publish NPM #217
Workflow file for this run
This file contains 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 NPM | |
# This action runs on 'git push tag v*' | |
on: | |
push: | |
tags: | |
- v* | |
workflow_dispatch: | |
defaults: | |
run: | |
working-directory: desktop/ | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
node-version: '18.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 | |
- name: Publish JS Flipper | |
working-directory: js/js-flipper | |
run: | | |
yarn | |
yarn build | |
yarn publish |