Skip to content
This repository was archived by the owner on Apr 1, 2020. It is now read-only.

Commit 649b011

Browse files
committed
build: setup semantic-release
1 parent 0e1fbbb commit 649b011

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

.travis.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1-
sudo: false
21
language: node_js
32
cache:
43
directories:
5-
- node_modules
4+
- ~/.npm
65
node_js:
7-
- "8"
6+
- '8'
87
notifications:
98
email: false
10-
9+
before_script:
10+
- npm prune
11+
after_success:
12+
- npm run semantic-release
13+
branches:
14+
except:
15+
- /^v\d+\.\d+\.\d+$/
1116
deploy:
1217
script: scripts/deploy.sh
1318
provider: script

package.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "commitlint-bot",
3-
"version": "0.0.0",
3+
"version": "0.0.0-development",
44
"description": "A GitHub App that runs commitlint for you",
55
"author": "Ahmed T. Ali <[email protected]> (https://ahmed.sd)",
66
"license": "MIT",
@@ -11,7 +11,9 @@
1111
"now": "now",
1212
"now-start": "PRIVATE_KEY=$(echo $PRIVATE_KEY | base64 -d) npm start",
1313
"start": "probot run ./index.js",
14-
"test": "mocha"
14+
"test": "mocha",
15+
"semantic-release":
16+
"semantic-release pre && npm publish && semantic-release post"
1517
},
1618
"dependencies": {
1719
"@commitlint/core": "^4.2.2",
@@ -21,7 +23,8 @@
2123
"expect": "^1.20.2",
2224
"localtunnel": "^1.8.2",
2325
"mocha": "^3.2.0",
24-
"now": "^8.3.10"
26+
"now": "^8.3.10",
27+
"semantic-release": "^8.2.0"
2528
},
2629
"engines": {
2730
"node": ">=8",

0 commit comments

Comments
 (0)