Skip to content

Commit b5fb482

Browse files
authored
build: add release script (#336)
* build: add release script * build: add conventional-changelog-cli
1 parent 80d56c5 commit b5fb482

File tree

2 files changed

+556
-4
lines changed

2 files changed

+556
-4
lines changed

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
"lint:css": "stylelint \"src/**/*.{css,less,scss}\"",
2020
"lint:es": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
2121
"prepublishOnly": "father doctor && npm run build",
22-
"deploy": "npm run docs:build && gh-pages -d docs-dist"
22+
"deploy": "npm run docs:build && gh-pages -d docs-dist",
23+
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
24+
"release": "bumpp && npm publish",
25+
"postversion": "npm run changelog"
2326
},
2427
"authors": [
2528
"dtinsight UED"
@@ -81,6 +84,8 @@
8184
"@umijs/lint": "^4.0.0",
8285
"babel-plugin-import": "^1.13.5",
8386
"babel-types": "^6.26.0",
87+
"bumpp": "^9.1.0",
88+
"conventional-changelog-cli": "^2.2.2",
8489
"cz-conventional-changelog": "^3.3.0",
8590
"dumi": "^2.1.13",
8691
"eslint": "^8.23.0",

0 commit comments

Comments
 (0)