Skip to content

Commit f90cfab

Browse files
committed
feat(automation): Add semantic-release and commitizen to automate releases
1 parent 98a817a commit f90cfab

File tree

4 files changed

+888
-38
lines changed

4 files changed

+888
-38
lines changed

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ script:
1414
- yarn run validate
1515
after_success:
1616
- yarn run report-coverage
17+
- npm run semantic-release
1718
branches:
1819
only:
1920
- master

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![Build Status](https://travis-ci.org/kyleshevlin/shevyjs.svg?branch=master)](https://travis-ci.org/kyleshevlin/shevyjs)
44
[![codecov](https://codecov.io/gh/kyleshevlin/shevyjs/branch/master/graph/badge.svg)](https://codecov.io/gh/kyleshevlin/shevyjs)
5+
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
56

67
> Perfect vertical rhythm for typography in CSS-in-JS
78

package.json

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "shevyjs",
3-
"version": "1.0.0",
3+
"version": "0.0.0-development",
44
"description": "Shevyjs is a CSS-in-JS solution for perfect vertical rhythm with your typography",
55
"main": "src/index.js",
66
"files": [
@@ -9,8 +9,15 @@
99
"repository": "[email protected]:kyleshevlin/shevyjs.git",
1010
"author": "Kyle Shevlin <[email protected]> (http://kyleshevlin.com/)",
1111
"license": "MIT",
12+
"config": {
13+
"commitizen": {
14+
"path": "cz-conventional-changelog"
15+
}
16+
},
1217
"scripts": {
1318
"precommit": "npm run validate",
19+
"commit": "git-cz",
20+
"commitmsg": "validate-commit-msg",
1421
"prebuild": "rimraf dist",
1522
"build": "npm-run-all --parallel build:*",
1623
"build:main": "babel --out-dir dist src",
@@ -20,7 +27,8 @@
2027
"test": "jest --coverage",
2128
"test:watch": "jest --watch",
2229
"report-coverage": "cat ./coverage/lcov.info | codecov",
23-
"validate": "npm-run-all --parallel lint test build"
30+
"validate": "npm-run-all --parallel lint test build",
31+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
2432
},
2533
"devDependencies": {
2634
"babel-cli": "^6.24.1",
@@ -30,6 +38,8 @@
3038
"babel-plugin-transform-object-rest-spread": "^6.23.0",
3139
"babel-preset-es2015": "^6.24.1",
3240
"codecov": "^2.2.0",
41+
"commitizen": "^2.9.6",
42+
"cz-conventional-changelog": "^2.0.0",
3343
"eslint": "^3.19.0",
3444
"eslint-config-standard": "^10.2.1",
3545
"eslint-plugin-import": "^2.2.0",
@@ -40,6 +50,8 @@
4050
"jest": "^19.0.2",
4151
"npm-run-all": "^4.0.2",
4252
"rimraf": "^2.6.1",
53+
"semantic-release": "^6.3.6",
54+
"validate-commit-msg": "^2.12.1",
4355
"webpack": "^2.5.1"
4456
}
4557
}

0 commit comments

Comments
 (0)