Skip to content

Commit

Permalink
Checkout code prior to deploy
Browse files Browse the repository at this point in the history
Summary: Closes #17917

Differential Revision: D6944553

Pulled By: hramos

fbshipit-source-id: 013f5e75bd61d939fe650729c9c388a78bede330
  • Loading branch information
hramos authored and facebook-github-bot committed Feb 9, 2018
1 parent 40b1792 commit 2ef9b7f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -582,18 +582,31 @@ workflows:
requires:
- checkout_code

# Only runs on PRs
analyze:
jobs:
# Checkout repo and run Yarn
- checkout_code:
filters: *filter-ignore-master-stable

# Run code checks
- analyze_pr:
filters: *filter-ignore-master-stable
requires:
- checkout_code

# Only runs on NN-stable branches
deploy:
jobs:
# Checkout repo and run Yarn
- checkout_code:
filters: *filter-only-stable

# 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:
- checkout_code
- approve_publish_npm_package

0 comments on commit 2ef9b7f

Please sign in to comment.