diff --git a/.release-it.json b/.release-it.json new file mode 100644 index 000000000..5ada9c09d --- /dev/null +++ b/.release-it.json @@ -0,0 +1,8 @@ +{ + "git": { + "tagName": "v${version}" + }, + "github": { + "release": true + } +} diff --git a/package.json b/package.json index 12b95b698..bfeb49672 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,8 @@ "build:lib": "rm -r lib && NODE_ENV=production webpack -p", "build:demo": "rm -r docs && NODE_ENV=development webpack -p", "sample": "webpack-dev-server server.js", - "test": "jest --passWithNoTests" + "test": "jest --passWithNoTests", + "release": "release-it" }, "dependencies": { "two.js": "0.7.0-beta.3" @@ -79,6 +80,7 @@ "prettier": "1.17.1", "react": "16.8.6", "react-dom": "16.8.6", + "release-it": "^12.0.1", "resolve-url-loader": "3.1.0", "rimraf": "2.6.3", "sass-loader": "7.1.0",