diff options
author | Eug-VS <eug-vs@keemail.me> | 2020-02-03 22:15:55 +0300 |
---|---|---|
committer | Eug-VS <eug-vs@keemail.me> | 2020-02-03 22:15:55 +0300 |
commit | 7b0e815ce93ab9a06e18c960fe357135b069349f (patch) | |
tree | 179cece756c45003f83654317ceadf2bfd44a13f | |
parent | 616830b0b64df5d3efb0c66c0439ff094588e369 (diff) | |
download | react-benzin-7b0e815ce93ab9a06e18c960fe357135b069349f.tar.gz |
feat: add deploy job to circleCI
-rw-r--r-- | .circleci/config.yml | 18 |
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 + |