File tree 2 files changed +91
-0
lines changed
2 files changed +91
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+
3
+ references :
4
+ pin-npm-version : &pin-npm-version
5
+ run :
6
+ name : Pin NPM to specified version
7
+ command :
sudo npm install -g [email protected]
8
+
9
+ jobs :
10
+ test :
11
+ docker :
12
+ - image : circleci/node:10.13.0
13
+
14
+ steps :
15
+ - *pin-npm-version
16
+ - checkout
17
+
18
+ - restore_cache :
19
+ keys :
20
+ - jscache-{{ checksum "package.json" }}
21
+ - jscache-
22
+
23
+ - run : npm ci
24
+
25
+ - save_cache :
26
+ paths :
27
+ - node_modules
28
+ key : jscache-{{ checksum "package.json" }}
29
+
30
+ - run : npm run lint
31
+
32
+ publish :
33
+ docker :
34
+ - image : circleci/node:10.13.0
35
+
36
+ steps :
37
+ - *pin-npm-version
38
+ - checkout
39
+ - add_ssh_keys :
40
+ fingerprints :
41
+ - ' ba:c3:f4:48:21:3a:c5:6b:b2:d9:06:e8:bc:ba:7b:e3'
42
+
43
+ - run : npm version --no-git-tag-version ${CIRCLE_TAG}
44
+ - run : git add package.json package-lock.json
45
+ - run : git commit -m "Automatic NPM version bump ${CIRCLE_TAG}"
46
+ - run : git checkout -b temp
47
+ - run : git push origin temp:master
48
+ - run : npm publish
49
+
50
+ publish-hot :
51
+ docker :
52
+ - image : circleci/node:10.13.0
53
+
54
+ steps :
55
+ - *pin-npm-version
56
+ - checkout
57
+ - run : npm version --no-git-tag-version ${CIRCLE_TAG}
58
+ - run : npm publish
59
+
60
+ workflows :
61
+ version : 2
62
+ test-and-publish :
63
+ jobs :
64
+ - test :
65
+ context : npm-publish
66
+ filters :
67
+ tags :
68
+ only : /.*/
69
+ - publish :
70
+ context : npm-publish
71
+ requires :
72
+ - test
73
+ filters :
74
+ tags :
75
+ only : /^v[0-9]+(\.[0-9]+)*(-rc[0-9]*)*/
76
+ branches :
77
+ ignore : /.*/
78
+ - publish-hot :
79
+ context : npm-publish
80
+ requires :
81
+ - test
82
+ filters :
83
+ tags :
84
+ only : /^v[0-9]+(\.[0-9]+)*-hot/
85
+ branches :
86
+ ignore : /.*/
Original file line number Diff line number Diff line change 48
48
"typescript" : " 3.5.3" ,
49
49
"webpack" : " 4.39.2" ,
50
50
"webpack-cli" : " 3.3.7"
51
+ },
52
+ "prettier" : {
53
+ "trailingComma" : " all" ,
54
+ "tabWidth" : 4 ,
55
+ "singleQuote" : true
51
56
}
52
57
}
You can’t perform that action at this time.
0 commit comments