Summary: This diff bumps `actions/setup-node@v3.6.0` & `actions/checkout@v3.5.3` ### Ref.: - `actions/checkout@v3.5.3` changelog: https://github.com/actions/checkout/releases/tag/v3.5.3 - `actions/setup-node@v3.6.0` changelog: https://github.com/actions/setup-node/releases/tag/v3.6.0 ## Changelog: [GENERAL] [SECURITY] - [Actions] `publish-npm` - Bump `actions/`- `setup-node@v3.6.0` & `checkout@v3.5.3` Pull Request resolved: https://github.com/facebook/flipper/pull/4867 Test Plan: - Workflow should run and work as usual. Reviewed By: lblasa Differential Revision: D47829480 Pulled By: passy fbshipit-source-id: f3ca6d0720f9d0774c65eedde5d3a63630588329
38 lines
907 B
YAML
38 lines
907 B
YAML
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/checkout@v3.5.3
|
|
- uses: actions/setup-node@v3.6.0
|
|
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
|