Semvar fixes
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/publish Pipeline was successful

This commit is contained in:
2026-08-07 12:20:52 -03:00
parent 234226e2bb
commit 9bcf28c9dc
2 changed files with 13 additions and 3 deletions
+12 -2
View File
@@ -5,13 +5,23 @@ const repositoryUrl =
? `https://${encodeURIComponent(releaseUsername)}:${encodeURIComponent(releaseToken)}@git.mifi.dev/mifi/logger.git`
: "https://git.mifi.dev/mifi/logger.git";
/**
* Default Angular preset rejects `feat!` / `fix!` headers entirely (no release).
* These parser options match Conventional Commits so `!` becomes a BREAKING CHANGE note.
*/
const conventionalCommitParserOpts = {
headerPattern: /^(\w*)(?:\((.*)\))?!?: (.*)$/,
breakingHeaderPattern: /^(\w*)(?:\((.*)\))?!: (.*)$/,
noteKeywords: ["BREAKING CHANGE", "BREAKING-CHANGE"],
};
module.exports = {
branches: ["main"],
repositoryUrl,
tagFormat: "v${version}",
plugins: [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/commit-analyzer", { parserOpts: conventionalCommitParserOpts }],
["@semantic-release/release-notes-generator", { parserOpts: conventionalCommitParserOpts }],
["@semantic-release/changelog", { changelogFile: "CHANGELOG.md" }],
"@semantic-release/npm",
[