This repository was archived by the owner on Nov 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +2087
-70
lines changed
Expand file tree Collapse file tree 3 files changed +2087
-70
lines changed Original file line number Diff line number Diff line change 1+ version : 2
2+
3+ refs :
4+ container : &container
5+ docker :
6+ - image : node:8.11
7+ working_directory : ~/repo
8+
9+ jobs :
10+ all :
11+ << : *container
12+ steps :
13+ - checkout
14+ - restore_cache :
15+ keys :
16+ - v1-dependencies-{{ checksum "yarn.lock" }}
17+ - v1-dependencies-
18+ - run :
19+ name : Versions
20+ command : node -v && npm -v && yarn -v
21+ - run :
22+ name : Install dependencies
23+ command : yarn install
24+ - save_cache :
25+ paths :
26+ - node_modules
27+ key : v1-dependencies-{{ checksum "yarn.lock" }}
28+ - run :
29+ name : Build
30+ command : yarn build
31+ - run :
32+ name : Test
33+ command : yarn test
34+
35+ master :
36+ << : *container
37+ steps :
38+ - checkout
39+ - restore_cache :
40+ keys :
41+ - v1-dependencies-{{ checksum "yarn.lock" }}
42+ - v1-dependencies-
43+ - run :
44+ name : Versions
45+ command : node -v && npm -v && yarn -v
46+ - run :
47+ name : Install dependencies
48+ command : yarn install
49+ - save_cache :
50+ paths :
51+ - node_modules
52+ key : v1-dependencies-{{ checksum "yarn.lock" }}
53+ - run :
54+ name : Build
55+ command : yarn build
56+ - run :
57+ name : Test
58+ command : yarn test
59+ - run :
60+ name : Post status to GitHub
61+ command : |
62+ npx cross-ci :run \
63+ npx commit-status success Version "'\${BUILD_VERSION}'"
64+ - run :
65+ name : Release
66+ command : yarn release
67+
68+ workflows :
69+ version : 2
70+ all :
71+ jobs :
72+ - all :
73+ filters :
74+ branches :
75+ ignore :
76+ - master
77+ master :
78+ jobs :
79+ - master :
80+ filters :
81+ branches :
82+ only : master
Original file line number Diff line number Diff line change 1414 "test:watch" : " jest --no-cache --watch" ,
1515 "build" : " webpack -d --watch" ,
1616 "prettier" : " prettier --write \" src/**/*.js\" " ,
17+ "release" : " semantic-release" ,
1718 "lint" : " eslint src"
1819 },
1920 "husky" : {
5455 "devDependencies" : {
5556 "@commitlint/cli" : " ^7.2.1" ,
5657 "@commitlint/config-conventional" : " ^7.1.2" ,
58+ "@semantic-release/changelog" : " ^3.0.1" ,
59+ "@semantic-release/git" : " ^7.0.5" ,
60+ "@semantic-release/npm" : " ^5.0.5" ,
5761 "babel-eslint" : " ^10.0.1" ,
5862 "babel-preset-es2015" : " ^6.3.13" ,
5963 "babelify" : " ^7.2.0" ,
6872 "jest" : " ^23.6.0" ,
6973 "lint-staged" : " ^7.3.0" ,
7074 "prettier" : " 1.14.3" ,
75+ "semantic-release" : " ^15.10.5" ,
7176 "uglify-js" : " ~2.6.1" ,
7277 "vinyl-source-stream" : " ~1.1.0" ,
7378 "watchify" : " ~3.7.0" ,
7479 "webpack" : " ^4.20.2" ,
7580 "webpack-cli" : " ^3.1.2"
81+ },
82+ "release" : {
83+ "verifyConditions" : [
84+ " @semantic-release/changelog" ,
85+ " @semantic-release/npm" ,
86+ " @semantic-release/git"
87+ ],
88+ "prepare" : [
89+ " @semantic-release/changelog" ,
90+ " @semantic-release/npm" ,
91+ " @semantic-release/git"
92+ ]
7693 }
7794}
You can’t perform that action at this time.
0 commit comments