File tree Expand file tree Collapse file tree 2 files changed +27
-4
lines changed Expand file tree Collapse file tree 2 files changed +27
-4
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,21 @@ jobs: # a collection of steps
35
35
- store_artifacts :
36
36
path : ~/tmp/reports/eslint
37
37
38
+ version : # version the project
39
+ executor : node-project
40
+ steps :
41
+ - checkout
42
+ - restore_cache :
43
+ key : dependency-cache-{{ checksum "package-lock.json" }}
44
+ - run :
45
+ name : Add Git User details
46
+ command : |
47
+ git config --global user.email "ripixel+ci@gmail.com"
48
+ git config --global user.name "CircleCi"
49
+ - run :
50
+ name : Standard version
51
+ command : npm run release:ci
52
+
38
53
build : # build the project - requires dependencies to have been installed
39
54
executor : node-project
40
55
steps :
@@ -75,13 +90,21 @@ workflows:
75
90
- lint :
76
91
requires :
77
92
- install_deps
93
+ - version :
94
+ filters :
95
+ branches :
96
+ only : master
97
+ requires :
98
+ - lint
78
99
- build :
100
+ filters :
101
+ branches :
102
+ only : master
79
103
requires :
80
- - install_deps
104
+ - version
81
105
- deploy_to_firebase :
82
106
filters :
83
107
branches :
84
108
only : master
85
109
requires :
86
110
- build
87
- - lint
Original file line number Diff line number Diff line change 16
16
"build:thoughts" : " mkdir -p ./public/thoughts && ts-node ./scripts/generateThoughts" ,
17
17
"lint" : " eslint \" scripts/**/*{.js,.ts}\" " ,
18
18
"lint:ci" : " eslint \" scripts/**/*{.js,.ts}\" --format junit -o reports/eslint/results.xml" ,
19
- "release" : " npm run lint && standard-version" ,
20
- "rp " : " npm run release && git push --follow-tags origin master --no-verify"
19
+ "release" : " standard-version" ,
20
+ "release:ci " : " npm run release && git push --follow-tags origin master --no-verify"
21
21
},
22
22
"repository" : {
23
23
"type" : " git" ,
You can’t perform that action at this time.
0 commit comments