From 7b0e815ce93ab9a06e18c960fe357135b069349f Mon Sep 17 00:00:00 2001 From: Eug-VS Date: Mon, 3 Feb 2020 22:15:55 +0300 Subject: feat: add deploy job to circleCI --- .circleci/config.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to '.circleci/config.yml') 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 + -- cgit v1.2.3