Skip to content

Commit e28238f

Browse files
chore(release): 🔧 update release-it configuration for improved workflow
* Refactored `.release-it.json` to enhance hook formatting and readability. * Simplified `release` and `release:ci` scripts in `package.json` for clarity. * Ensured consistency in workspace and version update configurations.
1 parent c276faa commit e28238f

2 files changed

Lines changed: 16 additions & 7 deletions

File tree

‎.release-it.json‎

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,20 @@
1818
"skipChecks": true
1919
},
2020
"hooks": {
21-
"before:init": ["npm run test"],
21+
"before:init": [
22+
"npm run test"
23+
],
2224
"after:bump": [
23-
"npm run build",
25+
"npm run build"
2426
],
2527
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
2628
},
2729
"plugins": {
2830
"@release-it/bumper": {
29-
"out": ["package.json", "proxy/package.json"]
31+
"out": [
32+
"package.json",
33+
"proxy/package.json"
34+
]
3035
},
3136
"@release-it/conventional-changelog": {
3237
"preset": "conventionalcommits",
@@ -35,10 +40,14 @@
3540
"ignoreRecommendedBump": false
3641
},
3742
"@release-it-plugins/workspaces": {
38-
"workspaces": ["proxy"],
43+
"workspaces": [
44+
"proxy"
45+
],
3946
"publish": true,
4047
"additionalManifests": {
41-
"versionUpdates": ["proxy/package.json"]
48+
"versionUpdates": [
49+
"proxy/package.json"
50+
]
4251
}
4352
}
4453
}

‎package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"deploy-docs": "ts-node tools/gh-pages-publish",
4444
"report-coverage": "cat ./coverage/lcov.info | coveralls",
4545
"commit": "git-cz",
46-
"release": "npm run release --workspaces && release-it",
47-
"release:ci": "npm run release:ci --workspaces && release-it --ci",
46+
"release": "release-it",
47+
"release:ci": "release-it --ci",
4848
"precommit": "lint-staged",
4949
"prepush": "jest --verbose ./src",
5050
"commitmsg": "commitlint -E HUSKY_GIT_PARAMS",

0 commit comments

Comments
 (0)