File tree Expand file tree Collapse file tree 2 files changed +27
-16
lines changed Expand file tree Collapse file tree 2 files changed +27
-16
lines changed Original file line number Diff line number Diff line change 1- machine :
2- node :
3- version : 7
4- environment :
5- PATH : " ${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
6-
7- dependencies :
8- override :
9- - yarn
10- cache_directories :
11- - ~/.cache/yarn
12-
13- test :
14- override :
15- - yarn test
1+ version : 2
2+ jobs :
3+ build :
4+ docker :
5+ - image : circleci/node:12
6+ branches :
7+ ignore :
8+ - gh-pages # list of branches to ignore
9+ - /release\/.*/ # or ignore regexes
10+ steps :
11+ - checkout
12+ - restore_cache :
13+ key : dependency-cache-{{ checksum "yarn.lock" }}
14+ - run :
15+ name : install dependences
16+ command : npm ci
17+ - save_cache :
18+ key : dependency-cache-{{ checksum "yarn.lock" }}
19+ paths :
20+ - ./node_modules
21+ - run :
22+ name : test
23+ command : npm test
24+ - run :
25+ name : Release
26+ command : npx semantic-release
Original file line number Diff line number Diff line change 1414 " dist"
1515 ],
1616 "scripts" : {
17- "test" : " echo 'no tests!' && npm run lint " ,
17+ "test" : " npm run build " ,
1818 "lint" : " xo" ,
1919 "prepublish" : " npm run build" ,
2020 "build" : " npm run build:umd && npm run build:cjs" ,
You can’t perform that action at this time.
0 commit comments