/
config.yml
47 lines (46 loc) 路 1.02 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
version: 2.1
orbs:
node: circleci/node@5
browser-tools: circleci/browser-tools@1
codecov: codecov/codecov@3
jobs:
test:
docker:
- image: cimg/node:current-browsers
environment:
CHROME_BIN: '/usr/bin/google-chrome'
steps:
- browser-tools/install-chrome
- checkout
- node/install-packages
- run:
name: test
command: npm run test:ci
- run:
name: lint
command: npm run lint
- codecov/upload
release:
executor:
name: node/default
tag: 'current'
steps:
- checkout
- node/install-packages
- run: npm run build
- run: cd dist && npx semantic-release
workflows:
version: 2
test_and_release:
# Run the test jobs first, then the release only when all the test jobs are successful
jobs:
- test
- release:
filters:
branches:
only:
- master
context:
- npm
requires:
- test