Skip to content

Commit 100fa49

Browse files
committed
feat(Update release process): Adds semantic-release and commitizen to enable automatic, easy release
1 parent 3b7404e commit 100fa49

File tree

3 files changed

+3190
-2
lines changed

3 files changed

+3190
-2
lines changed

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: node_js
2+
cache: yarn
3+
notifications:
4+
email: false
5+
node_js:
6+
- '10'
7+
- '9'
8+
- '8'
9+
after_success:
10+
- npm run travis-deploy-once "npm run semantic-release"
11+
branches:
12+
except:
13+
- /^v\d+\.\d+\.\d+$/

package.json

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,41 @@
11
{
22
"name": "vue-context-api",
3-
"version": "1.6.0",
3+
"version": "0.0.0-development",
44
"description": "A react-like context api for Vue",
55
"main": "index.js",
66
"repository": "https://github.com/zephraph/vue-context-api",
77
"author": "zephraph <zephraph@gmail.com>",
8-
"license": "MIT"
8+
"license": "MIT",
9+
"scripts": {
10+
"semantic-release": "semantic-release",
11+
"travis-deploy-once": "travis-deploy-once"
12+
},
13+
"release": {
14+
"verifyConditions": [
15+
"@semantic-release/changelog",
16+
"@semantic-release/npm",
17+
"@semantic-release/git"
18+
],
19+
"prepare": [
20+
"@semantic-release/changelog",
21+
"@semantic-release/npm",
22+
"@semantic-release/git"
23+
],
24+
"publish": [
25+
"@semantic-release/github",
26+
"@semantic-release/npm"
27+
]
28+
},
29+
"devDependencies": {
30+
"@semantic-release/changelog": "^2.0.2",
31+
"@semantic-release/git": "^5.0.0",
32+
"cz-conventional-changelog": "^2.1.0",
33+
"semantic-release": "^15.5.0",
34+
"travis-deploy-once": "^5.0.0"
35+
},
36+
"config": {
37+
"commitizen": {
38+
"path": "./node_modules/cz-conventional-changelog"
39+
}
40+
}
941
}

0 commit comments

Comments
 (0)