aboutsummaryrefslogtreecommitdiff
path: root/.circleci/config.yml
diff options
context:
space:
mode:
authorEug-VS <eug-vs@keemail.me>2020-02-03 22:15:55 +0300
committerEug-VS <eug-vs@keemail.me>2020-02-03 22:15:55 +0300
commit7b0e815ce93ab9a06e18c960fe357135b069349f (patch)
tree179cece756c45003f83654317ceadf2bfd44a13f /.circleci/config.yml
parent616830b0b64df5d3efb0c66c0439ff094588e369 (diff)
downloadreact-benzin-7b0e815ce93ab9a06e18c960fe357135b069349f.tar.gz
feat: add deploy job to circleCI
Diffstat (limited to '.circleci/config.yml')
-rw-r--r--.circleci/config.yml18
1 files changed, 16 insertions, 2 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index eb407a4..49ed1ad 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -15,7 +15,7 @@ jobs:
- v1-dependencies-
- run:
- name: install NPM dependencies
+ name: Install NPM dependencies
command: npm install
- save_cache:
@@ -24,6 +24,20 @@ jobs:
key: v1-dependencies-{{ checksum "package.json" }}
- run:
- name: Test code syntax with eslint
+ name: Test syntax and perform type checking
command: npm test
+ deploy:
+ requires:
+ - build
+ filters:
+ tags:
+ only: /^v.*/
+ steps:
+ - run:
+ name: Authenticate with registry
+ command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc
+ - run:
+ name: Deploy package
+ command: npm run deploy
+