-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
53 lines (45 loc) · 1.16 KB
/
.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
40
41
42
43
44
45
46
47
48
49
50
51
52
language: node_js
node_js:
- "10"
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.15.2
- export PATH="$HOME/.yarn/bin:$PATH"
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
install:
- "yarn install --frozen-lockfile"
after_install:
- "yarn -v"
script:
- commitlint-travis
- "yarn run lint"
- "yarn run test:coverage"
cache:
yarn: true
directories:
- node_modules
- packages/*/node_modules
jobs:
include:
- stage: publish
deploy:
- provider: releases
api_key: $GITHUB_TOKEN
script: "npm run lerna:version"
github_token: $GITHUB_TOKEN
skip_cleanup: true
on:
branch: master
- provider: script
script: "npm run lerna:publish"
api_key: $GITHUB_TOKEN
github_token: $GITHUB_TOKEN
skip_cleanup: true
on:
branch: master
- provider: script
script: yarn run deploy --repo https://$GITHUB_TOKEN@github.com/ableneo/modules.git
github_token: $GITHUB_TOKEN
skip_cleanup: true
keep_history: true
on:
branch: master