forked from nhsuk/nhsuk-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (48 loc) · 1 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
language: node_js
node_js:
- "lts/*"
cache:
directories:
- ~/.npm
- ~/.cache
stages:
- tests
- name: master
if: branch = master
- name: tag
if: tag IS present
jobs:
include:
- stage: tests
script: npm test
- stage: master
name: github pages
script: npm run build-gh-pages
deploy:
provider: pages
local-dir: ./dist/docs
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
- stage: tag
name: publish to git releases
script: npm run build-gh-release
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file: ./dist/nhsuk-frontend-*.zip
skip_cleanup: true
on:
tags: true
- stage: tag
name: publish to npm
deploy:
provider: npm
email: $NPM_EMAIL
api_key: $NPM_API_KEY
on:
tags: true
skip_cleanup: true
notifications:
slack: nhsuk:$SLACK_TOKEN#frontend