Skip to content

Commit 55b6f43

Browse files
committed
setup semantic release
1 parent 64edc0d commit 55b6f43

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.travis.yml

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

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "make-empty-github-commit",
33
"description": "Makes a new empty commit on GitHub using API",
4-
"version": "1.0.0",
4+
"version": "0.0.0-development",
55
"author": "Gleb Bahmutov <[email protected]>",
66
"bugs": "https://github.com/bahmutov/make-empty-github-commit/issues",
77
"config": {
@@ -61,7 +61,8 @@
6161
"secure": "nsp check",
6262
"size": "t=\"$(npm pack .)\"; wc -c \"${t}\"; tar tvf \"${t}\"; rm \"${t}\";",
6363
"test": "npm run unit",
64-
"unit": "mocha src/*-spec.js"
64+
"unit": "mocha src/*-spec.js",
65+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
6566
},
6667
"release": {
6768
"analyzeCommits": "simple-commit-message"
@@ -76,7 +77,8 @@
7677
"nsp": "2.8.1",
7778
"pre-git": "3.15.3",
7879
"prettier-standard": "7.0.1",
79-
"standard": "10.0.3"
80+
"standard": "10.0.3",
81+
"semantic-release": "^8.0.3"
8082
},
8183
"dependencies": {
8284
"debug": "3.1.0",

0 commit comments

Comments
 (0)