Skip to content

Commit

Permalink
feat: Add CHANGELOG plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
linpengteng committed Jun 30, 2023
1 parent edb36df commit 83e4a15
Show file tree
Hide file tree
Showing 3 changed files with 2,255 additions and 91 deletions.
18 changes: 18 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"plugins": {
"@release-it/conventional-changelog": {
"preset": "angular",
"infile": "CHANGELOG.md"
}
},
"git": {
"commitMessage": "chore: Release v${version}"
},
"github": {
"release": true,
"draft": false
},
"npm": {
"publish": true
}
}
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cz-message-helper",
"version": "1.2.5",
"version": "1.2.6",
"description": "A commit message helper for commitizen",
"license": "MIT",
"author": "lin pengteng <china.linpengteng@gmail.com>",
Expand All @@ -17,7 +17,8 @@
"commitizen"
],
"scripts": {
"build": "shx rm -rf dist && rollup --config rollup.config.cjs"
"build": "shx rm -rf dist && rollup --config rollup.config.cjs",
"release": "release-it"
},
"repository": {
"type": "git",
Expand All @@ -29,13 +30,14 @@
"dependencies": {
"find-config": "^1.0.0",
"inquirer": "^9.1.4",
"rimraf": "^4.1.2",
"rimraf": "^5.0.1",
"word-wrap": "^1.2.3"
},
"devDependencies": {
"@commitlint/cli": "^17.4.2",
"@commitlint/config-conventional": "^17.4.2",
"@rollup/plugin-commonjs": "^24.0.1",
"@release-it/conventional-changelog": "^5.1.1",
"@rollup/plugin-commonjs": "^25.0.2",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-typescript": "^11.1.2",
"@rollup/pluginutils": "^5.0.2",
Expand All @@ -50,6 +52,7 @@
"husky": "^8.0.3",
"lint-staged": "^13.2.3",
"prettier": "^2.8.4",
"release-it": "^15.11.0",
"rollup": "^3.25.3",
"shx": "^0.3.4",
"typescript": "^5.1.6"
Expand Down
Loading

0 comments on commit 83e4a15

Please sign in to comment.