sudo: required

services:
  - docker

language: node_js

node_js:
  - 7

script:
  - npm run eslint

after_success:
  - if [[ $TRAVIS_PULL_REQUEST != "false" ]]; then exit 0; fi
  - docker login -u $DOCKER_USER -p $DOCKER_PASSWORD $DOCKER_REGISTRY
  - export COMMIT=${TRAVIS_COMMIT::8}
  - docker build -f Dockerfile -t $DOCKER_REPO:$COMMIT .
  - docker tag $DOCKER_REPO:$COMMIT $DOCKER_REPO:$TRAVIS_BRANCH
  - if [[ $TRAVIS_TAG ]]; then docker tag $DOCKER_REPO:$COMMIT $DOCKER_REPO:stable; fi
  - docker push $DOCKER_REPO

deploy:
  provider: npm
  api_key: $NPM_AUTH_TOKEN
  on:
    tags: true

sudo: required

services:
  - docker

language: node_js

node_js:
  - 7

script:
  - npm run eslint

after_success:
  - if [[ $TRAVIS_PULL_REQUEST != "false" ]]; then exit 0; fi
  - docker login -u $DOCKER_USER -p $DOCKER_PASSWORD $DOCKER_REGISTRY
  - export COMMIT=${TRAVIS_COMMIT::8}
  - docker build -f Dockerfile -t $DOCKER_REPO:$COMMIT .
  - docker tag $DOCKER_REPO:$COMMIT $DOCKER_REPO:$TRAVIS_BRANCH
  - if [[ $TRAVIS_TAG ]]; then docker tag $DOCKER_REPO:$COMMIT $DOCKER_REPO:stable; fi
  - docker push $DOCKER_REPO

deploy:
  provider: npm
  api_key: $NPM_AUTH_TOKEN
  email: $NPM_EMAIL
  on:
    tags: true

Add required parameter ‘email’ to the npm deploy step
Add required parameter ‘email’ to the npm deploy step
