Skip to content

Commit 50aea7f

Browse files
committed
chore: add release-it
1 parent eeb192a commit 50aea7f

File tree

4 files changed

+1855
-7
lines changed

4 files changed

+1855
-7
lines changed

.release-it.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"github": {
3+
"release": true
4+
},
5+
"git": {
6+
"commitMessage": "chore: release v${version}"
7+
},
8+
"npm": {
9+
"publish": false
10+
},
11+
"hooks": {
12+
"after:bump": "echo Version Upgrade Success. checkout more in CHANGELOG"
13+
},
14+
"plugins": {
15+
"@release-it/conventional-changelog": {
16+
"preset": "angular",
17+
"infile": "CHANGELOG.md"
18+
}
19+
}
20+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ It's time to return to a refreshing state!
3131

3232
No need to compile, download now!
3333

34-
In [here](https://github.com/msgbyte/webbox/releases) can directly obtain the pre -compiled executable file.
34+
In [here](https://github.com/msgbyte/webbox/releases) can directly obtain the pre-compiled executable file.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"start:preload": "cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack --config ./.erb/configs/webpack.config.preload.dev.ts",
4242
"start:renderer": "cross-env NODE_ENV=development TS_NODE_TRANSPILE_ONLY=true webpack serve --config ./.erb/configs/webpack.config.renderer.dev.ts",
4343
"create:icons": "electron-icon-builder --input=./assets/icon.png --output=./assets -f",
44+
"release": "release-it",
4445
"test": "jest"
4546
},
4647
"browserslist": [],
@@ -113,6 +114,7 @@
113114
"@electron/notarize": "^1.2.3",
114115
"@electron/rebuild": "^3.2.10",
115116
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
117+
"@release-it/conventional-changelog": "^5.1.1",
116118
"@svgr/webpack": "^6.5.1",
117119
"@teamsupercell/typings-for-css-modules-loader": "^2.5.2",
118120
"@testing-library/jest-dom": "^5.16.5",
@@ -160,6 +162,7 @@
160162
"prettier": "^2.8.3",
161163
"react-refresh": "^0.14.0",
162164
"react-test-renderer": "^18.2.0",
165+
"release-it": "^15.8.0",
163166
"rimraf": "^4.1.2",
164167
"sass": "^1.58.0",
165168
"sass-loader": "^13.2.0",

0 commit comments

Comments
 (0)