Skip to content

Commit

Permalink
Merge pull request #42 from getlocalci/update/ci-config
Browse files Browse the repository at this point in the history
Add a filter for tags to the test-lint job
  • Loading branch information
kienstra authored Nov 22, 2021
2 parents 8aaaf54 + 5c08919 commit fa43f40
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ executors:
- image: cimg/node:16.8.0-browsers

jobs:
test-lint:
test:
executor:
name: node
steps:
Expand All @@ -19,7 +19,7 @@ jobs:
- checkout
- node/install-packages
- run: npm test
deploy:
publish:
executor:
name: node
steps:
Expand All @@ -32,12 +32,15 @@ jobs:
command: npm run deploy

workflows:
test:
test-publish:
jobs:
- test-lint
- deploy:
- test:
filters:
tags:
only: /.*/
- publish:
requires:
- test-lint
- test
filters:
tags:
only: /^\d+\.\d+\.\d+$/
Expand Down

0 comments on commit fa43f40

Please sign in to comment.