Skip to content

Commit 422c007

Browse files
committedOct 25, 2024
chore: tweak release it
1 parent f231ea3 commit 422c007

File tree

2 files changed

+34
-4
lines changed

2 files changed

+34
-4
lines changed
 

‎.release-it.json

+33-3
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,47 @@
11
{
2+
"hooks": {
3+
"before:init": ["yarn typecheck", "yarn test", "yarn lint"],
4+
"after:bump": "yarn build",
5+
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
6+
},
27
"git": {
3-
"commitMessage": "chore: release ${version}",
8+
"commitMessage": "chore: release v${version}",
49
"tagName": "v${version}"
510
},
611
"npm": {
712
"publish": true
813
},
914
"github": {
10-
"release": true
15+
"release": true,
16+
"releaseName": "v${version}"
1117
},
1218
"plugins": {
1319
"@release-it/conventional-changelog": {
14-
"preset": "angular"
20+
"preset": {
21+
"name": "conventionalcommits",
22+
"types": [
23+
{
24+
"type": "feat",
25+
"section": "✨ Features"
26+
},
27+
{
28+
"type": "perf",
29+
"section": "💨 Performance Improvements"
30+
},
31+
{
32+
"type": "fix",
33+
"section": "🐛 Bug Fixes"
34+
},
35+
{
36+
"type": "chore(deps)",
37+
"section": "🛠️ Dependency Upgrades"
38+
},
39+
{
40+
"type": "docs",
41+
"section": "📚 Documentation"
42+
}
43+
]
44+
}
1545
}
1646
}
1747
}

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"build:js": "babel src --out-dir build --extensions \".js,.ts,.jsx,.tsx\" --source-maps --ignore \"**/__tests__/**\"",
3535
"build:ts": "tsc --build tsconfig.release.json",
3636
"build": "yarn clean && yarn build:js && yarn build:ts && yarn copy-flowtypes",
37-
"publish": "yarn build && release-it"
37+
"release": "release-it"
3838
},
3939
"files": [
4040
"build/",

0 commit comments

Comments
 (0)
Please sign in to comment.