Skip to content

Commit 2ef9b7f

Browse files
hramosfacebook-github-bot
authored andcommitted
Checkout code prior to deploy
Summary: Closes #17917 Differential Revision: D6944553 Pulled By: hramos fbshipit-source-id: 013f5e75bd61d939fe650729c9c388a78bede330
1 parent 40b1792 commit 2ef9b7f

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.circleci/config.yml

+13
Original file line numberDiff line numberDiff line change
@@ -582,18 +582,31 @@ workflows:
582582
requires:
583583
- checkout_code
584584

585+
# Only runs on PRs
586+
analyze:
587+
jobs:
588+
# Checkout repo and run Yarn
589+
- checkout_code:
590+
filters: *filter-ignore-master-stable
591+
585592
# Run code checks
586593
- analyze_pr:
587594
filters: *filter-ignore-master-stable
588595
requires:
589596
- checkout_code
590597

598+
# Only runs on NN-stable branches
591599
deploy:
592600
jobs:
601+
# Checkout repo and run Yarn
602+
- checkout_code:
603+
filters: *filter-only-stable
604+
593605
# If we are on a stable branch, wait for approval to deploy to npm
594606
- approve_publish_npm_package:
595607
filters: *filter-only-stable
596608
type: approval
597609
- publish_npm_package:
598610
requires:
611+
- checkout_code
599612
- approve_publish_npm_package

0 commit comments

Comments
 (0)