-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (35 loc) · 907 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
language: node_js
node_js:
- "14"
- "10"
jobs:
include:
- 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 for deploy gh-pages"
- npm run build
deploy:
# deploy to gh-pages
# Need env
# GITHUB_TOKEN
provider: script
skip_cleanup: true
script: bash scripts/deploy.sh
on:
tags: true
- stage: deploy
script:
- echo "build for deploy npm"
- npm run build
deploy:
# deploy to npm === npm publish
provider: npm
email: uniquecolesmith@gmail.com
skip_cleanup: true
api_key: $NPM_AUTH_TOKEN
on:
tags: true