language: node_js
node_js:
  - 10
env:
  - version=6
  - version=8
  - version=10
  - version=lts
  - version=latest
services:
  - docker
script:
  - make test-docker
before_deploy:
  - echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
  - git reset HEAD --hard
deploy:
  - provider: script
    script: "lerna publish from-package --yes"
    skip_cleanup: true
    on:
      tags: true
      condition: $version = 10

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

language: node_js
node_js:
  - 10
env:
  - version=6
  - version=8
  - version=10
  - version=lts
  - version=latest
services:
  - docker
script:
  - make test-docker
before_deploy:
  - echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
  - git reset HEAD --hard
deploy:
  - provider: script
    script: "lerna publish from-package --yes"
    skip_cleanup: true
    on:
      tags: true
      condition: $version = 10

notifications:
  slack:
    if: branch = main
    on_pull_requests: false
    on_success: never
    on_failure: change
    rooms:
      - secure: i4B6L4/Wv1Z9jLSIH6UDa/rgARh472iCd44zLGYjHjXu7RRmDYrS4ZtE3vl5N/Xd8PVpBpAhsFXC8rG5zYEWCsU7UdRlKaHHz5CcLWFX25QP2PQaK5cKMR64mUgHi0lKQmt258HPrvPV1JqxF3nP+yJLWnB65QLMyEukCTK5N1c=

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

This reverts commit ff40974d
