diff --git a/.circleci/config.yml b/.circleci/config.yml index 3847d6a..492d0b3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,10 +3,17 @@ jobs: build: docker: - image: circleci/node:10.15.3 - working_directory: ~/app + working_directory: ~/repo steps: - - run: 'node -v' - - run: 'npm -v' - - checkout - - run: 'npm ci' - - run: 'npm test' + - run: 'node -v' + - run: 'npm -v' + - checkout + - run: 'npm ci' + - run: 'npm test' + - deploy: + name: 'npm publish' + command: | + if [[ $CIRCLE_TAG =~ v.* ]]; then + echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > ~/repo/.npmrc + npm publish + fi diff --git a/package-lock.json b/package-lock.json index 7560e47..72960de 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@notainc/delay", - "version": "0.0.1", + "version": "0.0.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 5cd9910..7cf7b67 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@notainc/delay", - "version": "0.0.1", + "version": "0.0.3", "description": "delay for async-await", "main": "index.js", "scripts": {