Semvar fixes
This commit is contained in:
+12
-2
@@ -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",
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user