File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,4 @@ script:
13
13
- npm run validate
14
14
after_success :
15
15
- npm run report-coverage
16
+ - npm run release
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " github-names" ,
3
- "version" : " 2 .0.2 " ,
3
+ "version" : " 0 .0.0-semantically-released " ,
4
4
"description" : " Get random GitHub usernames" ,
5
5
"main" : " dist/index.js" ,
6
6
"scripts" : {
7
+ "commit" : " git-cz" ,
7
8
"prebuild" : " rimraf dist" ,
8
9
"build" : " npm-run-all --parallel build:*" ,
9
10
"build:main" : " babel --copy-files --out-dir dist --ignore *.test.js src" ,
12
13
"test" : " cross-env NODE_ENV=test nyc mocha" ,
13
14
"watch:test" : " mocha --watch" ,
14
15
"report-coverage" : " cat ./coverage/lcov.info | codecov" ,
16
+ "release" : " semantic-release pre && npm publish && semantic-release post" ,
15
17
"lint" : " eslint src" ,
16
18
"validate" : " npm-run-all --parallel test lint build"
17
19
},
43
45
"babel-register" : " 6.11.6" ,
44
46
"chai" : " 3.5.0" ,
45
47
"codecov" : " 1.0.1" ,
48
+ "commitizen" : " 2.8.5" ,
46
49
"cross-env" : " 2.0.0" ,
50
+ "cz-conventional-changelog" : " 1.1.7" ,
47
51
"eslint" : " 3.2.0" ,
48
52
"eslint-config-kentcdodds" : " ^9.0.0" ,
49
53
"ghooks" : " 1.3.2" ,
52
56
"npm-run-all" : " 2.3.0" ,
53
57
"nyc" : " 7.1.0" ,
54
58
"rimraf" : " 2.5.4" ,
59
+ "semantic-release" : " 4.3.5" ,
60
+ "validate-commit-msg" : " 2.6.1" ,
55
61
"webpack" : " 1.13.1"
56
62
},
57
63
"nyc" : {
87
93
}
88
94
},
89
95
"config" : {
96
+ "commitizen" : {
97
+ "path" : " cz-conventional-changelog"
98
+ },
90
99
"ghooks" : {
91
- "pre-commit" : " npm run validate"
100
+ "pre-commit" : " npm run validate" ,
101
+ "commit-msg" : " validate-commit-msg"
92
102
}
93
103
}
94
104
}
You can’t perform that action at this time.
0 commit comments