-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.travis.yml
60 lines (51 loc) · 1.32 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
53
54
55
56
57
58
59
60
language: node_js
node_js:
- 12
cache: yarn
install:
- yarn
script:
- yarn test
- yarn build
jobs:
include:
- stage: general
if: branch = development AND commit_message !~ /\[skip publish\]/
before_deploy:
- yarn bump-version:prerelease
- yarn build
deploy:
- provider: npm
email: $NPM_EMAIL
api_key: $NPM_TOKEN
skip_cleanup: true
on:
branch: development
tag: next
- stage: general
if: branch = master AND commit_message !~ /\[skip publish\]/
before_deploy:
- >
if ! [ "${BEFORE_DEPLOY_RUN}" ]; then
export BEFORE_DEPLOY_RUN=1;
git config user.email "builds@travis-ci.com"
git config user.name "Travis CI"
yarn bump-version
git push --verbose --no-verify --follow-tags ${OWNER}${GH_TOKEN}@${GH_REF} HEAD:master
yarn build
fi
deploy:
- provider: pages
github_token: $GH_TOKEN
skip_cleanup: true
keep_history: true
local_dir: docs-dist
on:
branch: master
- provider: npm
email: $NPM_EMAIL
api_key: $NPM_TOKEN
skip_cleanup: true
keep_history: true
on:
branch: master