forked from bulib/bulib-wc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
60 lines (59 loc) · 1.67 KB
/
circle.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
56
57
58
59
60
version: 2
jobs:
test:
docker:
- image: cypress/base:10
environment:
- CHROME_BIN: /usr/bin/google-chrome
steps:
- checkout
- restore_cache:
name: restore binary/dependencies from cache
keys:
- cache-{{ checksum "package.json" }}
- run:
name: install cypress binary and dependencies from package-lock
command: npm ci
- run: npm run cy:verify;
- save_cache:
name: save binary and dependencies to cache
key: cache-{{ checksum "package.json" }}
paths:
- ~/.npm
- ~/.cache
- run:
name: install npm dependencies
command: npm run reinstall;
- run:
name: build with open-wc
command: npm run build:owc;
- store_artifacts:
name: upload bundle
path: /root/project/dist/
destination: /bundles/open-wc/
- run:
name: build with custom rollup config
command: npm run build:rollup;
- store_artifacts:
name: upload bundle
path: /root/project/dist/bundle.esm.js
destination: /bundles/bundle.esm.js
- run:
name: build storybook site
command: npm run build:storybook;
- store_artifacts:
name: upload bundle
path: /root/project/_site/
destination: /_site/
- run:
name: simulate npm package creation
command: npm pack
- store_artifacts:
name: upload simulated package
path: /root/project/bulib-wc-*.tgz
destination: /npm/
workflows:
version: 2
build:
jobs:
- test