Skip to content

Commit 55311e0

Browse files
author
Kent C. Dodds
committed
fix(deps): add semantic-release and friends
Add some stuff that's great!
1 parent b6c64fc commit 55311e0

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ script:
1313
- npm run validate
1414
after_success:
1515
- npm run report-coverage
16+
- npm run release

package.json

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"name": "github-names",
3-
"version": "2.0.2",
3+
"version": "0.0.0-semantically-released",
44
"description": "Get random GitHub usernames",
55
"main": "dist/index.js",
66
"scripts": {
7+
"commit": "git-cz",
78
"prebuild": "rimraf dist",
89
"build": "npm-run-all --parallel build:*",
910
"build:main": "babel --copy-files --out-dir dist --ignore *.test.js src",
@@ -12,6 +13,7 @@
1213
"test": "cross-env NODE_ENV=test nyc mocha",
1314
"watch:test": "mocha --watch",
1415
"report-coverage": "cat ./coverage/lcov.info | codecov",
16+
"release": "semantic-release pre && npm publish && semantic-release post",
1517
"lint": "eslint src",
1618
"validate": "npm-run-all --parallel test lint build"
1719
},
@@ -43,7 +45,9 @@
4345
"babel-register": "6.11.6",
4446
"chai": "3.5.0",
4547
"codecov": "1.0.1",
48+
"commitizen": "2.8.5",
4649
"cross-env": "2.0.0",
50+
"cz-conventional-changelog": "1.1.7",
4751
"eslint": "3.2.0",
4852
"eslint-config-kentcdodds": "^9.0.0",
4953
"ghooks": "1.3.2",
@@ -52,6 +56,8 @@
5256
"npm-run-all": "2.3.0",
5357
"nyc": "7.1.0",
5458
"rimraf": "2.5.4",
59+
"semantic-release": "4.3.5",
60+
"validate-commit-msg": "2.6.1",
5561
"webpack": "1.13.1"
5662
},
5763
"nyc": {
@@ -87,8 +93,12 @@
8793
}
8894
},
8995
"config": {
96+
"commitizen": {
97+
"path": "cz-conventional-changelog"
98+
},
9099
"ghooks": {
91-
"pre-commit": "npm run validate"
100+
"pre-commit": "npm run validate",
101+
"commit-msg": "validate-commit-msg"
92102
}
93103
}
94104
}

0 commit comments

Comments
 (0)