-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
47 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
cache: yarn
language: node_js
node_js:
- lts/*
stages:
- cache
- checks
- release
jobs:
include:
- stage: cache
name: 'Warm up cache'
script: echo "Warming up npm cache"
- stage: checks
name: 'Build'
script:
- yarn build
- yarn bundlesize
- stage: checks
name: 'Typescript'
script: yarn tsc
- stage: checks
name: 'Unit tests'
script: yarn test
- stage: checks
name: 'Check formatting'
script: yarn format:check
- stage: release
name: 'Publish demo to Github Pages'
if: branch = master
script: skip
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
local-dir: examples/basic
on:
branch: master
- stage: release
name: Release to npm
if: branch = master AND commit_message =~ /(feat|fix|BREAKING CHANGE)/
script:
- yarn build
- npx semantic-release