Skip to content

Commit

Permalink
Enable tag based gating for CI publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatlik committed Aug 17, 2018
1 parent 430670a commit 65cc524
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 65cc524

Please sign in to comment.