From 2ef9b7f2da5b875ac1a4fee0ade3cc16ad96772a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ramos?= <165856+hramos@users.noreply.github.com> Date: Thu, 8 Feb 2018 16:53:51 -0800 Subject: [PATCH] Checkout code prior to deploy Summary: Closes https://github.com/facebook/react-native/pull/17917 Differential Revision: D6944553 Pulled By: hramos fbshipit-source-id: 013f5e75bd61d939fe650729c9c388a78bede330 --- .circleci/config.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index b6d37a3ed0a..fc5db9ebe9a 100644 --- a/.circleci/config.yml +++ b/.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