-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I add a releaseRule that also respects the !
for a breaking change? (conventionalcommits preset)
#413
Comments
I had the same issue like you. But I found a solution by adding
|
I also had the same issue when I tried to commit a "@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"parserOpts": {
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES", "BREAKING"]
},
"releaseRules": [
{ "type": "docs", "release": "patch" },
{ "type": "refactor", "release": "patch" },
{ "type": "style", "release": "patch" },
{ "type": "test", "release": "patch" },
{ "type": "ci", "release": "patch" },
{ "type": "chore", "release": "patch" },
{ "type": "perf", "release": "patch" }
]
} Is there is any way to add multiple types with multiple release?
|
Hello, I have the same problem, with this solution I solved it. thank you |
@ajcerezo which solution do you mean? |
This solution of @RaphaelNeumann
|
We’re using the
conventionalcommits
preset. In this preset, adding an exclamation after the type triggers a breaking change/major version bump.Using the default
releaseRules
this works.feat!:
,fix!:
andperf!:
are recognized as major/breaking changes.In fact, anything with an exclamation triggers a major/breaking change, such as
docs!:
or evenallGloryToTheHypnoToad!:
Now we want to add
refactor
as a type.After adding this,
refactor:
triggers apatch
change, as expected.But
refactor!:
no longer triggers a major version bump.How do we get this to work?
Edit to add version info:
semantic-release 19.0.5
,@semantic-release/commit-analyzer 9.0.2
, Node 16.19.0The text was updated successfully, but these errors were encountered: