.circleci/config.yml
version: 2
jobs:
deploy:
docker:
- image: node:12
steps:
- checkout
- run: npm install
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run: npm publish || true
- run: npm run deploy
- run: npm run respawner
test:
docker:
- image: node:12
- image: mongo:latest
- image: redis:latest
steps:
- checkout
- run: npm install
- run:
command: npm run test
no_output_timeout: 2h
workflows:
version: 2
test_and_deploy:
jobs:
- test
- deploy:
requires:
- test
filters:
branches:
only: master