From 539390d17ec183d769a9340f2d98be6845b73c3d Mon Sep 17 00:00:00 2001 From: Oleg Pimenov Date: Thu, 20 Jun 2019 23:26:48 +0300 Subject: [PATCH] fix: ci PR NUmbers --- .circleci/config.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 21fe41341..5497ddac2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -146,6 +146,13 @@ jobs: - *checkout_code - *restore_cache - *attach_release_output + - run: + name: Setup Environment Variables + command: | + echo 'export CI_PREVIEW=true' >> $BASH_ENV + echo 'export SHORT_GIT_HASH=$(git rev-parse --short $CIRCLE_SHA1)' >> $BASH_ENV + echo 'export CIRCLE_PULL_REQUEST_NUMBER=$(echo "$CIRCLE_PULL_REQUEST" | cut -d"/" -f7)' >> $BASH_ENV + source $BASH_ENV - run: yarn run build:docs - run: yarn run docs:publish-preview