Skip to content
Permalink
Browse files

Checkout code prior to deploy

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 2ef9b7f2da5b875ac1a4fee0ade3cc16ad96772a
Showing with 13 additions and 0 deletions.
  1. +13 −0 .circleci/config.yml
@@ -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.
You can’t perform that action at this time.