Skip to content

Commit

Permalink
Merge pull request #8 from navarasu/fix_7_deployment_workflow
Browse files Browse the repository at this point in the history
#7 Added deployment workflow in circle ci
  • Loading branch information
navarasu authored Jul 5, 2020
2 parents 3db8e05 + 0de5f5a commit 9aaea95
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,35 @@ jobs:
- run: sudo npm install -g serverless
- run: npm test

deployment:
executor: node/default
steps:
- checkout
- run:
name: Authenticate with registry
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
- 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 9aaea95

Please sign in to comment.