Skip to content

Commit 5c4b5b5

Browse files
committed
chore(release): add release-it config
1 parent 7e355a4 commit 5c4b5b5

File tree

3 files changed

+470
-1
lines changed

3 files changed

+470
-1
lines changed

.release-it.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "https://unpkg.com/release-it@18/schema/release-it.json",
3+
"git": {
4+
"commitMessage": "chore(release): ${version}",
5+
"tagName": "${version}",
6+
"requireCleanWorkingDir": true
7+
},
8+
"npm": {
9+
"publish": true,
10+
"skipChecks": false
11+
},
12+
"github": {
13+
"release": true,
14+
"releaseName": "${version}"
15+
},
16+
"plugins": {
17+
"@release-it/conventional-changelog": {
18+
"preset": "conventionalcommits",
19+
"infile": "CHANGELOG.md"
20+
}
21+
},
22+
"hooks": {
23+
"after:bump": "npm run build"
24+
}
25+
}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@
2727
"lint:js": "eslint .",
2828
"lint:js:fix": "npm run lint:js -- --fix",
2929
"lint:all": "npm run lint:ts && npm run lint:js",
30-
"test": "vitest"
30+
"test": "vitest",
31+
"release": "release-it"
3132
},
3233
"devDependencies": {
34+
"@release-it/conventional-changelog": "^10.0.0",
3335
"@types/node": "^22.14.1",
3436
"esbuild": "^0.25.2",
3537
"eslint": "^9.24.0",

0 commit comments

Comments
 (0)