forked from pastelsky/bundlephobia
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
43 lines (36 loc) · 977 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
40
41
42
43
language: node_js
node_js: 10
jobs:
include:
# - stage: build
# script:
# - echo "build dist"
# - npm run build
- stage: deploy
script:
- echo "build deploy for test multi stage"
- npm run build
- stage: deploy
before_script:
- git config --global user.name 'whatwewant'
- git config --global user.email 'tobewhatwewant@gmail.com'
- git clone --branch gh-pages https://github.com/${TRAVIS_REPO_SLUG} gh-pages
script:
- echo "build deploy for gh-pages"
- npm run build
deploy:
- provider: script
script: bash deploy.sh
skip_cleanup: true
on:
tags: true
- provider: npm
api_key: $NPM_API_KEY
skip_cleanup: true
on:
branch: npm
- provider: heroku
api_key: $HEROKU_API_KEY
skip_cleanup: true
on:
branch: heroku