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

Commit

Permalink
build: setup semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
z0al committed Nov 2, 2017
1 parent 0e1fbbb commit 649b011
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
13 changes: 9 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
sudo: false
language: node_js
cache:
directories:
- node_modules
- ~/.npm
node_js:
- "8"
- '8'
notifications:
email: false

before_script:
- npm prune
after_success:
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
deploy:
script: scripts/deploy.sh
provider: script
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "commitlint-bot",
"version": "0.0.0",
"version": "0.0.0-development",
"description": "A GitHub App that runs commitlint for you",
"author": "Ahmed T. Ali <[email protected]> (https://ahmed.sd)",
"license": "MIT",
Expand All @@ -11,7 +11,9 @@
"now": "now",
"now-start": "PRIVATE_KEY=$(echo $PRIVATE_KEY | base64 -d) npm start",
"start": "probot run ./index.js",
"test": "mocha"
"test": "mocha",
"semantic-release":
"semantic-release pre && npm publish && semantic-release post"
},
"dependencies": {
"@commitlint/core": "^4.2.2",
Expand All @@ -21,7 +23,8 @@
"expect": "^1.20.2",
"localtunnel": "^1.8.2",
"mocha": "^3.2.0",
"now": "^8.3.10"
"now": "^8.3.10",
"semantic-release": "^8.2.0"
},
"engines": {
"node": ">=8",
Expand Down

0 comments on commit 649b011

Please sign in to comment.