Skip to content

Commit

Permalink
Move approval to separate deploy workflow
Browse files Browse the repository at this point in the history
Summary: Closes #17916

Differential Revision: D6943605

Pulled By: hramos

fbshipit-source-id: 0e86f01aa38c15e5bc179c5e517f079eb34d495f
  • Loading branch information
hramos authored and facebook-github-bot committed Feb 8, 2018
1 parent 4f078d3 commit 40b1792
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ jobs:
workflows:
version: 2

build:
test:
jobs:

# Checkout repo and run Yarn
Expand Down Expand Up @@ -581,16 +581,19 @@ workflows:
filters: *filter-ignore-gh-pages
requires:
- checkout_code

# If we are on a stable branch, deploy to `npm`

# Run code checks
- analyze_pr:
filters: *filter-ignore-master-stable
requires:
- 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:
filters: *filter-only-stable
requires:
- approve_publish_npm_package

- analyze_pr:
filters: *filter-ignore-master-stable
requires:
- checkout_code

0 comments on commit 40b1792

Please sign in to comment.