forked from FirefoxUX/photon-components-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
55 lines (52 loc) · 1.23 KB
/
config.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
55
version: 2
jobs:
build:
docker:
- image: circleci/node:8.11.4
working_directory: ~/repo
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-
- run: npm install
- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
- run: npm test
- run: npm run build:storybook
- run: npm run build:webpack
- run: zip -r storybook.zip storybook
- store_artifacts:
path: ~/repo/storybook.zip
- run: zip -r dist.zip dist
- store_artifacts:
path: ~/repo/dist.zip
- persist_to_workspace:
root: .
paths:
- ./*
storybook_deploy:
docker:
- image: circleci/node:8.11.4
working_directory: ~/repo
steps:
- attach_workspace:
at: .
- run: ./bin/deploy-gh-master.sh
workflows:
version: 2
build_test_deploy:
jobs:
- build:
filters:
branches:
ignore: gh-pages
- storybook_deploy:
requires:
- build
filters:
branches:
only: master