language: node_js
node_js:
  - "node"
  - "lts/*"
  - "10"
  - "8"
  - "6"
services:
  - docker
script: npm run ci

deploy:
  - provider: script
    script: make docker-build && make docker-push
    skip_cleanup: true
    on:
      tags: true
      node: "8"
  - provider: npm
    email: twilio-ci@twilio.com
    api_key: $NPM_TOKEN
    on:
      tags: true
      node: "8"

notifications:
  slack:
    if: branch = main
    on_pull_requests: false
    on_success: never
    on_failure: change
    rooms: $SLACK_TOKEN

language: node_js
node_js:
  - "node"
  - "lts/*"
  - "10"
  - "8"
  - "6"
services:
  - docker
script: npm run ci

deploy:
  - provider: script
    script: make docker-build && make docker-push
    skip_cleanup: true
    on:
      tags: true
      node: "8"
  - provider: npm
    email: twilio-ci@twilio.com
    api_key: $NPM_TOKEN
    on:
      tags: true
      node: "8"

notifications:
  slack:
    if: branch = main
    on_pull_requests: false
    on_success: never
    on_failure: change
    rooms:
      - secure: Y6eefesugmhL9jLjlyMggLaOty5vvtFT7vzxj9AG2kRZs2zc8ZwKOLED9F5ceC6gObYJut5Qsns8tPXZmF9lJpLTeBmGA7IxewLUlJiim0G08myXT7FnU8wDiew6BUSy8xIhqLnAA4mG25oJ/Wx4ZZN7QZMZv+vKP3lEeqdwdL0=

Revert "chore: move encrypted tokens to environment variables"
Revert "chore: move encrypted tokens to environment variables"

This reverts part of commit b35e86e7
