Skip to content

Commit 291fb82

Browse files
committed
add back semantic-release, improve naming
1 parent 324ffac commit 291fb82

File tree

1 file changed

+31
-13
lines changed

1 file changed

+31
-13
lines changed

circle.yml

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
version: 2
1+
version: 2.1
22

33
workflows:
4-
version: 2
54
main:
65
jobs:
7-
- lint
8-
- test-v4
9-
- test-v5
10-
- test-v6
6+
- Lint
7+
- Test ESLint 4
8+
- Test ESLint 5
9+
- Test ESLint 6
10+
- NPM Release
1111

1212
jobs:
1313
lint:
14+
name: Lint
1415
docker:
1516
- image: circleci/node:8
16-
1717
steps:
1818
- checkout
1919
- run:
@@ -22,41 +22,59 @@ jobs:
2222
- run:
2323
name: Lint code
2424
command: npm run lint
25+
2526
test-v4:
27+
name: Test ESLint 4
2628
docker:
2729
- image: circleci/node:8
28-
2930
steps:
3031
- checkout
3132
- run:
3233
name: Install dependencies
3334
command: npm install
3435
- run:
35-
name: Lint code
36+
name: Test ESLint 4
3637
command: npm run test:v4
3738

3839
test-v5:
40+
name: Test ESLint 5
3941
docker:
4042
- image: circleci/node:8
41-
4243
steps:
4344
- checkout
4445
- run:
4546
name: Install dependencies
4647
command: npm install
4748
- run:
48-
name: Lint code
49+
name: Test ESLint 5
4950
command: npm run test
5051

5152
test-v6:
53+
name: Test ESLint 6
5254
docker:
5355
- image: circleci/node:8
54-
5556
steps:
5657
- checkout
5758
- run:
5859
name: Install dependencies
5960
command: npm install
6061
- run:
61-
name: Lint code
62+
name: Test ESLint 6
6263
command: npm run test:v6
64+
65+
npm-release:
66+
name: NPM Release
67+
filters:
68+
branches:
69+
only:
70+
- master
71+
requires:
72+
- lint
73+
- test-v4
74+
- test-v5
75+
- test-v6
76+
steps:
77+
- checkout
78+
- run:
79+
name: Run semantic release
80+
command: npm run semantic-release

0 commit comments

Comments
 (0)