From 8f73410c7434d7c055fb405fcf11b99adf033db2 Mon Sep 17 00:00:00 2001 From: DaOfficialWizard <45744329+ZanzyTHEbar@users.noreply.github.com> Date: Wed, 3 May 2023 13:30:23 +0100 Subject: [PATCH] fix: fix release asset types --- .releaserc | 358 ++++++++++++++++++++++++++--------------------------- 1 file changed, 179 insertions(+), 179 deletions(-) diff --git a/.releaserc b/.releaserc index e6d0af17..f19bb61d 100644 --- a/.releaserc +++ b/.releaserc @@ -1,190 +1,190 @@ { - "branches": [ - "main", - "master", - "release", - { - "name": "dev", - "prerelease": true - } + "branches": [ + "main", + "master", + "release", + { + "name": "dev", + "prerelease": true + } + ], + "plugins": [ + [ + "@semantic-release/commit-analyzer", + { + "preset": "conventionalcommits", + "parserOpts": { + "noteKeywords": [ + "BREAKING CHANGE", + "BREAKING CHANGES", + "BREAKING" + ] + }, + "releaseRules": [ + { + "breaking": true, + "release": "major" + }, + { + "type": "feat", + "release": "minor" + }, + { + "type": "fix", + "release": "patch" + }, + { + "type": "perf", + "release": "patch" + }, + { + "type": "revert", + "release": "patch" + }, + { + "type": "docs", + "scope": "docs-*", + "release": "minor" + }, + { + "type": "docs", + "release": false + }, + { + "type": "style", + "release": "patch" + }, + { + "type": "refactor", + "release": "patch" + }, + { + "type": "test", + "release": "patch" + }, + { + "type": "build", + "release": "patch" + }, + { + "type": "ci", + "scope": "ci-*", + "release": "patch" + }, + { + "type": "chore", + "release": false + }, + { + "type": "no-release", + "release": false + } + ] + } ], - "plugins": [ - [ - "@semantic-release/commit-analyzer", + [ + "@semantic-release/release-notes-generator", + { + "preset": "conventionalcommits", + "parserOpts": { + "noteKeywords": [ + "BREAKING CHANGE", + "BREAKING CHANGES", + "BREAKING" + ] + }, + "writerOpts": { + "commitsSort": [ + "subject", + "scope" + ] + }, + "presetConfig": { + "types": [ { - "preset": "conventionalcommits", - "parserOpts": { - "noteKeywords": [ - "BREAKING CHANGE", - "BREAKING CHANGES", - "BREAKING" - ] - }, - "releaseRules": [ - { - "breaking": true, - "release": "major" - }, - { - "type": "feat", - "release": "minor" - }, - { - "type": "fix", - "release": "patch" - }, - { - "type": "perf", - "release": "patch" - }, - { - "type": "revert", - "release": "patch" - }, - { - "type": "docs", - "scope": "docs-*", - "release": "minor" - }, - { - "type": "docs", - "release": false - }, - { - "type": "style", - "release": "patch" - }, - { - "type": "refactor", - "release": "patch" - }, - { - "type": "test", - "release": "patch" - }, - { - "type": "build", - "release": "patch" - }, - { - "type": "ci", - "scope": "ci-*", - "release": "patch" - }, - { - "type": "chore", - "release": false - }, - { - "type": "no-release", - "release": false - } - ] - } - ], - [ - "@semantic-release/release-notes-generator", + "type": "feat", + "section": "🍕 Features" + }, { - "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", + "type": "feature", + "section": "🍕 Features" + }, { - "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", + "type": "fix", + "section": "🐛 Bug Fixes" + }, { - "prepareCmd": "./scripts/prepareCMD.sh ${nextRelease.version}", - "publishCmd": "echo Publishing ${nextRelease.version}" - } - ], - [ - "@semantic-release/github", + "type": "perf", + "section": "🔥 Performance Improvements" + }, { - "addReleases": "bottom", - "assets": [ - { - "path": "./dist/**/*.msi" - } - ] - } - ], - [ - "@semantic-release/git", + "type": "revert", + "section": "⏩ Reverts" + }, { - "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}" + "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}" + } ] -} \ No newline at end of file + ] +}