forked from mkosir/react-parallax-tilt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (38 loc) · 853 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:
- '8.9.1'
script:
- echo "Installing packages..."
- npm install
cache:
directories:
- 'node_modules'
jobs:
include:
- stage: validate
script:
- npm run validate
- stage: deploy github pages & codecov
if: branch == master && !fork
script:
- npm run storybook:build
- npm run test:coverage
- codecov --token=$CODECOV_TOKEN
deploy:
provider: pages
skip_cleanup: true
local_dir: build_storybook
github_token: $GITHUB_TOKEN
keep_history: true
on:
branch: master
- stage: npm release
if: tag IS present
script: npm run build
deploy:
provider: npm
email: $NPM_EMAIL
api_key: $NPM_TOKEN
skip_cleanup: true
on:
tags: true