From c4c94883ccdd4048f04d9ddb9ab76d686bb28a61 Mon Sep 17 00:00:00 2001 From: dannyrb Date: Fri, 26 Apr 2019 14:24:59 -0400 Subject: [PATCH] Publish a new version when merged to react branch --- .circleci/config.yml | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 836444cdc..becd7dd37 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -55,19 +55,20 @@ jobs: - persist_to_workspace: root: ~/repo paths: . - # npm_publish: - # <<: *defaults - # steps: - # - attach_workspace: - # at: ~/repo - # - run: - # name: Avoid hosts unknown for github - # command: - # mkdir ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking - # no\n" > ~/.ssh/config - # - run: - # name: Publish using Semantic Release - # command: npx semantic-release + + npm_publish: + <<: *defaults + steps: + - attach_workspace: + at: ~/repo + - run: + name: Avoid hosts unknown for github + command: + mkdir ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking + no\n" > ~/.ssh/config + - run: + name: Publish using Semantic Release + command: npx semantic-release workflows: version: 2 @@ -80,6 +81,7 @@ workflows: branches: ignore: - master + - react - feature/* - hotfix/* @@ -90,6 +92,6 @@ workflows: filters: branches: only: react - # - npm_publish: - # requires: - # - build_and_test + - npm_publish: + requires: + - build_and_test