Skip to content

Commit 114f967

Browse files
author
Kent C. Dodds
committed
fix(build): Automatic releases!!! ✨
1 parent be70fe4 commit 114f967

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
sudo: false
2+
language: node_js
3+
cache:
4+
directories:
5+
- node_modules
6+
notifications:
7+
email: false
8+
node_js:
9+
- '4'
10+
before_install:
11+
- npm i -g npm@^2.0.0
12+
before_script:
13+
- npm prune
14+
after_success:
15+
- npm run semantic-release
16+
branches:
17+
only:
18+
- master

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
# cz-conventional-changelog
22

3+
Status:
4+
[![npm version](https://img.shields.io/npm/v/cz-conventional-changelog.svg?style=flat-square)](https://www.npmjs.org/package/cz-conventional-changelog)
5+
[![npm downloads](https://img.shields.io/npm/dm/cz-conventional-changelog.svg?style=flat-square)](http://npm-stat.com/charts.html?package=cz-conventional-changelog&from=2015-08-01)
6+
[![Build Status](https://img.shields.io/travis/commitizen/cz-conventional-changelog.svg?style=flat-square)](https://travis-ci.org/commitizen/cz-conventional-changelog)
7+
38
Part of the [commitizen](https://github.com/commitizen/cz-cli) family. Prompts for [conventional changelog](https://github.com/ajoslin/conventional-changelog/blob/master/conventions/angular.md) standard.

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "cz-conventional-changelog",
3-
"version": "1.1.0",
3+
"version": "0.0.0-semantically-released.0",
44
"description": "Commitizen adapter following the conventional-changelog format.",
55
"main": "index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "echo 'Tests need to be setup!'",
8+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
89
},
910
"homepage": "https://github.com/commitizen/cz-conventional-changelog",
1011
"repository": {
@@ -15,5 +16,8 @@
1516
"license": "MIT",
1617
"dependencies": {
1718
"word-wrap": "^1.0.3"
19+
},
20+
"devDependencies": {
21+
"semantic-release": "^4.3.5"
1822
}
1923
}

0 commit comments

Comments
 (0)