File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ executors:
99# reusable command for all jobs
1010commands :
1111 checkout_from_cache :
12- description : " To checkout and restore the dependencies cache"
12+ description : ' To checkout and restore the dependencies cache'
1313 steps :
1414 - checkout
1515 - restore_cache :
2525 - checkout_from_cache
2626 - run :
2727 name : Install Dependencies
28- command : npm install
28+ command : npm ci
2929 - save_cache :
3030 key : dependency-cache-{{ checksum "package.json" }}
3131 paths : node_modules
@@ -41,13 +41,17 @@ jobs:
4141 command : npm run test:coverage
4242 - store_test_results :
4343 path : test_results
44- release :
44+ build :
4545 executor : main-executor
4646 steps :
4747 - checkout_from_cache
4848 - run :
4949 name : build
5050 command : npm run build
51+ release :
52+ executor : main-executor
53+ steps :
54+ - checkout_from_cache
5155 - run :
5256 name : release
5357 command : npm run release
@@ -61,9 +65,15 @@ workflows:
6165 - test :
6266 requires :
6367 - install
64- - release :
68+ - build :
6569 requires :
6670 - test
6771 filters :
6872 branches :
6973 only : master
74+ - release :
75+ requires :
76+ - build
77+ filters :
78+ branches :
79+ only : master
You can’t perform that action at this time.
0 commit comments