forked from sendgrid/sendgrid-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
32 lines (32 loc) · 834 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
language: node_js
node_js:
- 10
env:
- version=6
- version=8
- version=10
- version=lts
- version=latest
services:
- docker
script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- 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 --no-verify-access
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: ArC04W9wjgu0Mk7sJOFcJoWb7yVS1Pe48I9Y0gV+gg3o/S61NZWF7e7qvNTwE7S8bfL7fQibrcFxoewiwp7zwi+huD+p5uyhKVxS7ee0BRqzjFVDlz66lJ1jrqZAvNtcrEP17YtAE/EZuQ2VCBUmbX9if5XTloCzYeMQZUrYkZs=