Move approval to separate deploy workflow

Summary: Closes https://github.com/facebook/react-native/pull/17916

Differential Revision: D6943605

Pulled By: hramos

fbshipit-source-id: 0e86f01aa38c15e5bc179c5e517f079eb34d495f
This commit is contained in:
Héctor Ramos 2018-02-08 15:50:25 -08:00 committed by Facebook Github Bot
parent 4f078d3fe2
commit 40b17926bb
1 changed files with 12 additions and 9 deletions

View File

@ -537,7 +537,7 @@ jobs:
workflows: workflows:
version: 2 version: 2
build: test:
jobs: jobs:
# Checkout repo and run Yarn # Checkout repo and run Yarn
@ -582,15 +582,18 @@ workflows:
requires: requires:
- checkout_code - checkout_code
# If we are on a stable branch, deploy to `npm` # Run code checks
- approve_publish_npm_package:
type: approval
- publish_npm_package:
filters: *filter-only-stable
requires:
- approve_publish_npm_package
- analyze_pr: - analyze_pr:
filters: *filter-ignore-master-stable filters: *filter-ignore-master-stable
requires: requires:
- checkout_code - checkout_code
deploy:
jobs:
# If we are on a stable branch, wait for approval to deploy to npm
- approve_publish_npm_package:
filters: *filter-only-stable
type: approval
- publish_npm_package:
requires:
- approve_publish_npm_package