Skip to content

Commit a1bd73f

Browse files
committed
chore(release): use release-it for releases
1 parent e45981f commit a1bd73f

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

.release.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"src": {
3+
"tagName": "v%s"
4+
},
5+
"github": {
6+
"release": true,
7+
"releaseName": "v%s",
8+
"tokenRef": "GITHUB_TOKEN"
9+
},
10+
"npm": {
11+
"publish": true
12+
},
13+
"changelogCommand": "git log --pretty=format:'* %s (%h)' [REV_RANGE]"
14+
}

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111
"scripts": {
1212
"lint": "eslint --ext=js,html src tests examples",
1313
"build": "node build/build.js",
14-
"test": "npm run lint",
14+
"pretest": "npm run lint",
15+
"test": "npm run unit",
1516
"unit": "nyc ava test/**/*.spec.js",
1617
"dev": "npm run unit -- -w",
17-
"prepublishOnly": "npm run build"
18+
"prepublishOnly": "npm run build",
19+
"release": "release-it --preRelease=alpha"
1820
},
1921
"repository": {
2022
"type": "git",

0 commit comments

Comments
 (0)