Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 55311e0

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

2 files changed

+13-2Lines changed: 13 additions & 2 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.travis.yml‎

Copy file name to clipboardExpand all lines: .travis.yml
+1Lines changed: 1 addition & 0 deletions
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
Collapse file

‎package.json‎

Copy file name to clipboardExpand all lines: package.json
+12-2Lines changed: 12 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.