File tree Expand file tree Collapse file tree 1 file changed +83
-0
lines changed Expand file tree Collapse file tree 1 file changed +83
-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+ filters :
66+ tags :
67+ only : /.*/
68+ - publish :
69+ requires :
70+ - test
71+ filters :
72+ tags :
73+ only : /^v[0-9]+(\.[0-9]+)*(-rc[0-9]*)*/
74+ branches :
75+ ignore : /.*/
76+ - publish-hot :
77+ requires :
78+ - test
79+ filters :
80+ tags :
81+ only : /^v[0-9]+(\.[0-9]+)*-hot/
82+ branches :
83+ ignore : /.*/
You can’t perform that action at this time.
0 commit comments