From 65cc5243ffb5eaaf0e2588a4f0bf2d94db0519dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matten=20M=C3=A4tlik?= Date: Fri, 17 Aug 2018 14:52:09 +0300 Subject: [PATCH] Enable tag based gating for CI publishing --- .circleci/config.yml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 68a221d..17acde8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,22 +3,38 @@ workflows: version: 2 install-test-publish: jobs: - - install-dependencies + - install-dependencies: + filters: + tags: + only: /.*/ - test: + filters: + tags: + only: /.*/ requires: - install-dependencies - lint: + filters: + tags: + only: /.*/ requires: - install-dependencies - approve-publish-npm: type: approval filters: + tags: + only: /v[0-9]+(\.[0-9]+)*/ branches: - only: master + ignore: /.*/ requires: - test - lint - publish-npm: + filters: + tags: + only: /v[0-9]+(\.[0-9]+)*/ + branches: + ignore: /.*/ requires: - approve-publish-npm