Skip to content

Commit

Permalink
fixed circleci release workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
lquixada committed Mar 27, 2019
1 parent 3a2fc77 commit 94d7cd4
Showing 1 changed file with 44 additions and 3 deletions.
47 changes: 44 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ defaults: &defaults
- image: circleci/node:8.15.1-stretch
jobs:
build:
<<: *defaults
docker:
- image: circleci/node:8.15.1-stretch
steps:
- checkout
- restore_cache:
Expand Down Expand Up @@ -66,7 +67,7 @@ jobs:
- run: npm publish
workflows:
version: 2
cross-fetch:
ci: # On branch push, run all tests
jobs:
- build
- cross-browser:
Expand All @@ -81,6 +82,46 @@ workflows:
- test:
requires:
- build
release: # On tag push, run all tests and ask for approval to deploy
jobs:
- build:
filters:
branches:
ignore: /.*/
tags:
only: /^v\d\.\d\.\d.*/
- cross-browser:
requires:
- build
filters:
branches:
ignore: /.*/
tags:
only: /^v\d\.\d\.\d.*/
- lint:
requires:
- build
filters:
branches:
ignore: /.*/
tags:
only: /^v\d\.\d\.\d.*/
- security:
requires:
- build
filters:
branches:
ignore: /.*/
tags:
only: /^v\d\.\d\.\d.*/
- test:
requires:
- build
filters:
branches:
ignore: /.*/
tags:
only: /^v\d\.\d\.\d.*/
- publish:
type: approval
requires:
Expand All @@ -92,5 +133,5 @@ workflows:
branches:
ignore: /.*/
tags:
only: /v\d+\.\d+\.\d+(-\S+)?/
only: /^v\d\.\d\.\d.*/

0 comments on commit 94d7cd4

Please sign in to comment.