Skip to content

Commit 12e7841

Browse files
feat: Added semantic-release
1 parent f897ee3 commit 12e7841

2 files changed

Lines changed: 28 additions & 4 deletions

File tree

.travis.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
sudo: false
2+
language: node_js
3+
cache:
4+
directories:
5+
- node_modules
6+
notifications:
7+
email: false
8+
node_js:
9+
- '7'
10+
- '6'
11+
- '4'
12+
script:
13+
- yarn test
14+
after_success:
15+
- yarn build
16+
- yarn semantic-release
17+
branches:
18+
only:
19+
- master

package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
{
22
"name": "branchsite",
3-
"version": "1.0.3",
3+
"version": "0.0.0-development",
44
"author": {
55
"name": "Enrique Caballero",
66
"email": "ecaballerojr@icloud.com"
77
},
8+
"repository": {
9+
"type": "git",
10+
"url": "https://github.com/enriquecaballero/branchsite.git"
11+
},
812
"description": "",
913
"license": "MIT",
1014
"bin": {
@@ -16,8 +20,8 @@
1620
"cz": "git-cz",
1721
"commitmsg": "validate-commit-msg",
1822
"precommit": "lint-staged",
19-
"prepublish": "yarn build",
20-
"test": "jest"
23+
"test": "jest",
24+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
2125
},
2226
"files": [
2327
"lib"
@@ -56,7 +60,8 @@
5660
"lint-staged": "^3.4.1",
5761
"prettier-eslint-cli": "^3.4.3",
5862
"validate-commit-msg": "^2.12.1",
59-
"webpack": "^2.3.1"
63+
"webpack": "^2.3.1",
64+
"semantic-release": "^6.3.6"
6065
},
6166
"lint-staged": {
6267
"*.js": [

0 commit comments

Comments
 (0)