Skip to content

Commit fa20f39

Browse files
author
Stephan van Rooij
committed
Adding semantic releases
1 parent 4fdd9ee commit fa20f39

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.travis.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
language: node_js
2+
cache:
3+
directories:
4+
- ~/.npm
5+
notifications:
6+
email: false
7+
node_js:
8+
- '8'
9+
- '6'
10+
- '4'
11+
before_script:
12+
- npm prune
13+
after_success:
14+
- npm run semantic-release
15+
branches:
16+
except:
17+
- /^v\d+\.\d+\.\d+$/

package.json

+5-3
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
"ipcam2mqtt": "index.js"
88
},
99
"scripts": {
10-
"test": "standard && exit 0"
10+
"test": "standard && exit 0",
11+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1112
},
1213
"repository": {
1314
"type": "git",
14-
"url": "git+https://github.com/svrooij/ipcam2mqtt.git"
15+
"url": "https://github.com/svrooij/ipcam2mqtt.git"
1516
},
1617
"keywords": [
1718
"ip",
@@ -34,7 +35,8 @@
3435
},
3536
"devDependencies": {
3637
"pre-commit": "^1.2.2",
37-
"standard": "^10.0.3"
38+
"standard": "^10.0.3",
39+
"semantic-release": "^8.2.0"
3840
},
3941
"pre-commit": [
4042
"test"

0 commit comments

Comments
 (0)