Files
flipper/.github/workflows/publish-npm.yml
Pascal Hartig 111177b44e Upgrade to Node 14 for Actions (#2928)
Summary:
I believe that matches what we have internally. This has been causing some upgrades to fail.

Pull Request resolved: https://github.com/facebook/flipper/pull/2928

Reviewed By: aigoncharov

Differential Revision: D31324394

Pulled By: passy

fbshipit-source-id: eec38dcc6322e3e8957bbc20bf74d343855be8c0
2021-10-01 04:40:09 -07:00

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: '14.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