Skip to content

Commit

Permalink
chore(release): use release-it for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Nov 17, 2017
1 parent e45981f commit a1bd73f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .release.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"src": {
"tagName": "v%s"
},
"github": {
"release": true,
"releaseName": "v%s",
"tokenRef": "GITHUB_TOKEN"
},
"npm": {
"publish": true
},
"changelogCommand": "git log --pretty=format:'* %s (%h)' [REV_RANGE]"
}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
"scripts": {
"lint": "eslint --ext=js,html src tests examples",
"build": "node build/build.js",
"test": "npm run lint",
"pretest": "npm run lint",
"test": "npm run unit",
"unit": "nyc ava test/**/*.spec.js",
"dev": "npm run unit -- -w",
"prepublishOnly": "npm run build"
"prepublishOnly": "npm run build",
"release": "release-it --preRelease=alpha"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit a1bd73f

Please sign in to comment.