Skip to content

Commit

Permalink
#7 Added deployment workflow in circle ci
Browse files Browse the repository at this point in the history
  • Loading branch information
navarasu committed Jul 5, 2020
1 parent 3db8e05 commit 6df442e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,32 @@ jobs:
- run: sudo npm install -g serverless
- run: npm test

deployment:
executor: node/default
steps:
- checkout
- run: npm publish

workflows:
build-and-test-workflow:
jobs:
- build-and-test

deployment-workflow:
jobs:

- build-and-test:
filters:
tags:
only: /v[0-9]+(\.[0-9]+)*/
branches:
ignore: /.*/

- deployment:
requires:
- build-and-test
filters:
tags:
only: /v[0-9]+(\.[0-9]+)*/
branches:
ignore: /.*/

0 comments on commit 6df442e

Please sign in to comment.