Skip to content

Commit ef04b84

Browse files
committed
Fix again!
1 parent 0754107 commit ef04b84

1 file changed

Lines changed: 41 additions & 37 deletions

File tree

.circleci/config.yml

Lines changed: 41 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,52 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/node:7.10
6+
working_directory: ~/repo
7+
steps:
8+
- checkout
9+
- restore_cache:
10+
keys:
11+
- v1-dependencies-{{ checksum "package.json" }}
12+
- v1-dependencies-
13+
- run: npm install
14+
- save_cache:
15+
paths:
16+
- node_modules
17+
key: v1-dependencies-{{ checksum "package.json" }}
18+
- run: npm run lint
19+
- run: npm run type-check
20+
- run:
21+
name: Jest Suite
22+
command: npm test -- --ci --testResultsProcessor="jest-junit"
23+
environment:
24+
JEST_JUNIT_OUTPUT: "reports/junit/js-test-results.xml"
25+
- store_test_results:
26+
path: reports
27+
deploy:
28+
docker:
29+
- image: circleci/node:7.10
30+
steps:
31+
- checkout
32+
- restore_cache:
33+
keys:
34+
- v1-dependencies-{{ checksum "package.json" }}
35+
- v1-dependencies-
36+
- run: npm install
37+
- save_cache:
38+
paths:
39+
- node_modules
40+
key: v1-dependencies-{{ checksum "package.json" }}
41+
- run: npm publish
142
workflows:
243
version: 2
344
build-and-deploy:
445
jobs:
546
- build:
6-
docker:
7-
- image: circleci/node:7.10
847
filters:
948
tags:
1049
only: /.*/
11-
working_directory: ~/repo
12-
steps:
13-
- checkout
14-
- restore_cache:
15-
keys:
16-
- v1-dependencies-{{ checksum "package.json" }}
17-
- v1-dependencies-
18-
- run: npm install
19-
- save_cache:
20-
paths:
21-
- node_modules
22-
key: v1-dependencies-{{ checksum "package.json" }}
23-
- run: npm run lint
24-
- run: npm run type-check
25-
- run:
26-
name: Jest Suite
27-
command: npm test -- --ci --testResultsProcessor="jest-junit"
28-
environment:
29-
JEST_JUNIT_OUTPUT: "reports/junit/js-test-results.xml"
30-
- store_test_results:
31-
path: reports
3250
- deploy:
3351
requires:
3452
- build
@@ -37,18 +55,4 @@ workflows:
3755
only: /^v.*/
3856
branches:
3957
ignore: /.*/
40-
docker:
41-
- image: circleci/node:7.10
42-
steps:
43-
- checkout
44-
- restore_cache:
45-
keys:
46-
- v1-dependencies-{{ checksum "package.json" }}
47-
- v1-dependencies-
48-
- run: npm install
49-
- save_cache:
50-
paths:
51-
- node_modules
52-
key: v1-dependencies-{{ checksum "package.json" }}
53-
- run: npm publish
5458

0 commit comments

Comments
 (0)