Skip to content

Commit 9aaea95

Browse files
authored
Merge pull request #8 from navarasu/fix_7_deployment_workflow
#7 Added deployment workflow in circle ci
2 parents 3db8e05 + 0de5f5a commit 9aaea95

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.circleci/config.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,35 @@ jobs:
1313
- run: sudo npm install -g serverless
1414
- run: npm test
1515

16+
deployment:
17+
executor: node/default
18+
steps:
19+
- checkout
20+
- run:
21+
name: Authenticate with registry
22+
command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
23+
- run: npm publish
24+
1625
workflows:
1726
build-and-test-workflow:
1827
jobs:
1928
- build-and-test
2029

30+
deployment-workflow:
31+
jobs:
32+
33+
- build-and-test:
34+
filters:
35+
tags:
36+
only: /v[0-9]+(\.[0-9]+)*/
37+
branches:
38+
ignore: /.*/
39+
40+
- deployment:
41+
requires:
42+
- build-and-test
43+
filters:
44+
tags:
45+
only: /v[0-9]+(\.[0-9]+)*/
46+
branches:
47+
ignore: /.*/

0 commit comments

Comments
 (0)