fix: fix release asset types

This commit is contained in:
DaOfficialWizard 2023-05-03 13:30:23 +01:00
parent 5a688d1a9e
commit 8f73410c74

View file

@ -1,190 +1,190 @@
{ {
"branches": [ "branches": [
"main", "main",
"master", "master",
"release", "release",
{ {
"name": "dev", "name": "dev",
"prerelease": true "prerelease": true
} }
], ],
"plugins": [ "plugins": [
[ [
"@semantic-release/commit-analyzer", "@semantic-release/commit-analyzer",
{ {
"preset": "conventionalcommits", "preset": "conventionalcommits",
"parserOpts": { "parserOpts": {
"noteKeywords": [ "noteKeywords": [
"BREAKING CHANGE", "BREAKING CHANGE",
"BREAKING CHANGES", "BREAKING CHANGES",
"BREAKING" "BREAKING"
] ]
}, },
"releaseRules": [ "releaseRules": [
{ {
"breaking": true, "breaking": true,
"release": "major" "release": "major"
}, },
{ {
"type": "feat", "type": "feat",
"release": "minor" "release": "minor"
}, },
{ {
"type": "fix", "type": "fix",
"release": "patch" "release": "patch"
}, },
{ {
"type": "perf", "type": "perf",
"release": "patch" "release": "patch"
}, },
{ {
"type": "revert", "type": "revert",
"release": "patch" "release": "patch"
}, },
{ {
"type": "docs", "type": "docs",
"scope": "docs-*", "scope": "docs-*",
"release": "minor" "release": "minor"
}, },
{ {
"type": "docs", "type": "docs",
"release": false "release": false
}, },
{ {
"type": "style", "type": "style",
"release": "patch" "release": "patch"
}, },
{ {
"type": "refactor", "type": "refactor",
"release": "patch" "release": "patch"
}, },
{ {
"type": "test", "type": "test",
"release": "patch" "release": "patch"
}, },
{ {
"type": "build", "type": "build",
"release": "patch" "release": "patch"
}, },
{ {
"type": "ci", "type": "ci",
"scope": "ci-*", "scope": "ci-*",
"release": "patch" "release": "patch"
}, },
{ {
"type": "chore", "type": "chore",
"release": false "release": false
}, },
{ {
"type": "no-release", "type": "no-release",
"release": false "release": false
} }
]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"parserOpts": {
"noteKeywords": [
"BREAKING CHANGE",
"BREAKING CHANGES",
"BREAKING"
]
},
"writerOpts": {
"commitsSort": [
"subject",
"scope"
]
},
"presetConfig": {
"types": [
{
"type": "feat",
"section": "🍕 Features"
},
{
"type": "feature",
"section": "🍕 Features"
},
{
"type": "fix",
"section": "🐛 Bug Fixes"
},
{
"type": "perf",
"section": "🔥 Performance Improvements"
},
{
"type": "revert",
"section": "⏩ Reverts"
},
{
"type": "docs",
"section": "📝 Documentation"
},
{
"type": "style",
"section": "🎨 Styles"
},
{
"type": "refactor",
"section": "🧑‍💻 Code Refactoring"
},
{
"type": "test",
"section": "✅ Tests"
},
{
"type": "build",
"section": "🤖 Build System"
},
{
"type": "ci",
"section": "🔁 Continuous Integration"
}
]
}
}
],
[
"@semantic-release/changelog",
{
"changelogTitle": "# 📦 Changelog \n[![conventional commits](https://img.shields.io/badge/conventional%20commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n[![semantic versioning](https://img.shields.io/badge/semantic%20versioning-2.0.0-green.svg)](https://semver.org)\n> All notable changes to this project will be documented in this file"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "./scripts/prepareCMD.sh ${nextRelease.version}",
"publishCmd": "echo Publishing ${nextRelease.version}"
}
],
[
"@semantic-release/github",
{
"addReleases": "bottom",
"assets": [
{
"path": "./dist/**/*.msi"
}
]
}
],
[
"@semantic-release/git",
{
"assets": [
"package.json",
"src-tauri/tauri.conf.json",
"src-tauri/Cargo.toml",
"LICENSE*",
"CHANGELOG.md"
],
"message": "chore(${nextRelease.type}): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
] ]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"parserOpts": {
"noteKeywords": [
"BREAKING CHANGE",
"BREAKING CHANGES",
"BREAKING"
]
},
"writerOpts": {
"commitsSort": [
"subject",
"scope"
]
},
"presetConfig": {
"types": [
{
"type": "feat",
"section": "🍕 Features"
},
{
"type": "feature",
"section": "🍕 Features"
},
{
"type": "fix",
"section": "🐛 Bug Fixes"
},
{
"type": "perf",
"section": "🔥 Performance Improvements"
},
{
"type": "revert",
"section": "⏩ Reverts"
},
{
"type": "docs",
"section": "📝 Documentation"
},
{
"type": "style",
"section": "🎨 Styles"
},
{
"type": "refactor",
"section": "🧑‍💻 Code Refactoring"
},
{
"type": "test",
"section": "✅ Tests"
},
{
"type": "build",
"section": "🤖 Build System"
},
{
"type": "ci",
"section": "🔁 Continuous Integration"
}
]
}
}
],
[
"@semantic-release/changelog",
{
"changelogTitle": "# 📦 Changelog \n[![conventional commits](https://img.shields.io/badge/conventional%20commits-1.0.0-yellow.svg)](https://conventionalcommits.org)\n[![semantic versioning](https://img.shields.io/badge/semantic%20versioning-2.0.0-green.svg)](https://semver.org)\n> All notable changes to this project will be documented in this file"
}
],
[
"@semantic-release/exec",
{
"prepareCmd": "./scripts/prepareCMD.sh ${nextRelease.version}",
"publishCmd": "echo Publishing ${nextRelease.version}"
}
],
[
"@semantic-release/github",
{
"addReleases": "bottom",
"assets": [
{
"path": "./dist/**/*.{msi,deb,rpm,AppImage,dmg,zip}"
}
]
}
],
[
"@semantic-release/git",
{
"assets": [
"package.json",
"src-tauri/tauri.conf.json",
"src-tauri/Cargo.toml",
"LICENSE*",
"CHANGELOG.md"
],
"message": "chore(${nextRelease.type}): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
] ]
} ]
}