From 7f82a7808e563416227c94a55000ccb32448977a Mon Sep 17 00:00:00 2001 From: Prateek Srivastava Date: Mon, 18 Jun 2018 11:42:15 -0700 Subject: [PATCH] Publish only on version tags The changes are based off the Circle CI docs https://circleci.com/docs/2.0/workflows/#git-tag-job-execution. --- .circleci/config.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 95f509a8..14bd6ef5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,18 +18,22 @@ jobs: docker: - image: circleci/node:4-browsers steps: + - checkout - attach_workspace: { at: . } - run: npm publish . workflows: version: 2 test_and_publish: jobs: - - test - - publish: + - test: + filters: + tags: + only: /.*/ + - deploy: requires: - test filters: tags: only: /[0-9]+(\.[0-9]+)*(-.+)?/ branches: - only: master + ignore: /.*/