-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
39 lines (37 loc) · 896 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
33
34
35
36
37
38
39
os: linux
language: node_js
node_js:
- '10'
- '12'
- '14'
- '15'
- '16'
- 'lts/*'
script:
- echo "Running tests against $(node -v) ..."
- yarn test
jobs:
include:
- stage: publish
node_js: '12'
name: 'documentation'
script:
- echo "Deploying documentation..."
- cd docs
- yarn install
- cd website
- yarn install
- yarn build
- cd ../..
- git config --global user.name "${GH_NAME}"
- git config --global user.email "${GH_EMAIL}"
- echo "machine github.com login ${GH_NAME} password ${GH_TOKEN}" > ~/.netrc
- cd docs/website && GIT_USER="${GH_NAME}" yarn run publish-gh-pages
- stage: release
node_js: '12'
name: 'npm'
script: echo "Deploying to npm ..."
deploy:
provider: npm
email: $NPM_EMAIL
api_key: $NPM_TOKEN