63 lines
2.4 KiB
JSON
63 lines
2.4 KiB
JSON
{
|
|
"git": {
|
|
"commitMessage": "chore(release): v${version}",
|
|
"tagName": "v${version}",
|
|
"requireCleanWorkingDir": true,
|
|
"addUntrackedFiles": true
|
|
},
|
|
"npm": {
|
|
"publish": false
|
|
},
|
|
"hooks": {
|
|
"before:init": "node ./scripts/read-build-number.js",
|
|
"after:release": "node ./scripts/create-gitea-release.js ${version}"
|
|
},
|
|
"github": false,
|
|
"plugins": {
|
|
"@release-it/conventional-changelog": {
|
|
"preset": {
|
|
"name": "conventionalcommits",
|
|
"types": [
|
|
{ "type": "feat", "section": "🌟 Enhancements" },
|
|
{ "type": "fix", "section": "🐛 Bug fixes" },
|
|
{ "type": "chore", "section": "📝 Chore" },
|
|
{ "type": "docs", "section": "📚 Documentation" },
|
|
{ "type": "style", "section": "📚 Style" },
|
|
{ "type": "refactor", "section": "🛠️ Code Refactor" },
|
|
{
|
|
"type": "perf",
|
|
|
|
"section": "🚀 Performance"
|
|
},
|
|
{ "type": "test", "section": "📝 Testing Code" },
|
|
{
|
|
"type": "ci",
|
|
|
|
"section": "📈 Project changes"
|
|
},
|
|
{
|
|
"type": "build",
|
|
"hidden": false,
|
|
"section": "📈 Project Builds"
|
|
}
|
|
],
|
|
"commitUrlFormat": "{{host}}/{{owner}}/{{repository}}/commit/{{hash}}",
|
|
"compareUrlFormat": "{{host}}/{{owner}}/{{repository}}/compare/{{previousTag}}...{{currentTag}}",
|
|
"issueUrlFormat": "{{host}}/{{owner}}/{{repository}}/issues/{{id}}",
|
|
"userUrlFormat": "{{host}}/{{user}}"
|
|
},
|
|
"infile": "CHANGELOG.md",
|
|
"header": "# Changelog\n\nAll notable changes to LST will be documented in this file.\n",
|
|
"releaseCommitMessageFormat": "chore(release): {{currentTag}}"
|
|
}
|
|
},
|
|
"@release-it/gitea": {
|
|
"host": "https://${GITEA_URL}",
|
|
"tokenRef": "GITEA_TOKEN",
|
|
"releaseName": "v${version} (build ${BUILD_NUMBER})",
|
|
"releaseNotes": "node ./scripts/get-changelog-entry.js ${version}"
|
|
},
|
|
|
|
"files": ["package.json", "CHANGELOG.md"]
|
|
}
|