Skip to content

Commit

Permalink
feat: set up semantic-release (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeke authored Nov 27, 2017
1 parent fe56abb commit 2c7aa90
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
language: node_js
cache:
directories:
- ~/.npm
notifications:
email: false
node_js:
- '9'
- '8'
after_success:
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "depnames",
"version": "1.0.0",
"version": "0.0.0-development",
"main": "index.js",
"license": "MIT",
"description": "Fetch a list of dependency names for a given npm package",
Expand All @@ -15,16 +15,18 @@
"mocha": "^4.0.1",
"nixt": "^0.5.0",
"standard": "^10.0.3",
"standard-markdown": "^4.0.2"
"standard-markdown": "^4.0.2",
"semantic-release": "^8.2.0"
},
"engines": {
"node": ">=8"
},
"scripts": {
"test": "mocha && standard --fix && standard-markdown"
"test": "mocha && standard --fix && standard-markdown",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"bin": {
"depnames": "cli.js"
},
"preferGlobal": true
}
}

0 comments on commit 2c7aa90

Please sign in to comment.