Skip to content

Commit

Permalink
removed deploy build step due to NPM 2FA, contributors must manually …
Browse files Browse the repository at this point in the history
…publish now
  • Loading branch information
eranimo committed Mar 29, 2019
1 parent 0bc04e5 commit 5816a9f
Showing 1 changed file with 3 additions and 37 deletions.
40 changes: 3 additions & 37 deletions .circleci/config.yml
Expand Up @@ -18,51 +18,17 @@ jobs:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run: npm run lint
- run: npm test
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
- persist_to_workspace:
root: ~/project
paths:
- dist/
- .npmrc
- node_modules/
deploy:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: ~/project
- run: npm publish

deploy-beta:
<<: *defaults
steps:
- checkout
- attach_workspace:
at: ~/project
- run: npm publish --tag beta

workflows:
version: 2
build-deploy:
build-:
jobs:
- build:
filters:
tags:
only: /.*/
- deploy:
requires:
- build
filters:
tags:
only: /release-[0-9]+\.[0-9]+\.[0-9]+/
branches:
ignore: /.*/
- deploy-beta:
requires:
- build
filters:
tags:
only: /beta-[0-9]+\.[0-9]+\.[0-9]+(-rc[0-9]+)?/
branches:
ignore: /.*/
- build

0 comments on commit 5816a9f

Please sign in to comment.