Closed calvinl closed 4 years ago
:tada: This issue has been resolved in version 6.3.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Is it possible to release this patch in 7.0.0-beta
and in beta of semantic-release main cli?
:tada: This issue has been resolved in version 7.0.0-beta.4 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
@pvdlg Is it possible to use the recommended bump from conventional commits?
What I'm trying to do is to treat a commit message such as "fix!: This fix contains a breaking change" as breaking. From the spec:
- BREAKING CHANGE: a commit that has a footer BREAKING CHANGE:, or appends a ! after the type/scope, introduces a breaking API change (correlating with MAJOR in semantic versioning). A BREAKING CHANGE can be part of commits of any type.
I couldn't get this to work, neither with the latest stable version as well as ^7.0.0-beta.4
. It seems like they have a special API that needs to be used to apply the "recommended bump":
Could you help me with this? Thanks!
There's also this package: https://github.com/conventional-changelog/conventional-changelog/tree/3d0a52036a82ee11415ca777c005d84fa4169d2f/packages/conventional-recommended-bump. I'm not sure if it that should be used somehow?
I've also found this comment: https://github.com/semantic-release/commit-analyzer-v2/issues/11#issuecomment-270293692. Since the syntax is mentioned in the spec, shouldn't it be possible to use this out of the box?
A workaround is using this config:
[
'@semantic-release/commit-analyzer',
{
parserOpts: {
headerPattern: /^(\w*!?)(?:\(([\w\$\.\-\* ]*)\))?\: (.*)$/
},
releaseRules: [
{type: 'fix', release: 'patch'},
{type: 'feat', release: 'minor'},
{type: 'fix!', release: 'major'},
{type: 'feat!', release: 'major'}
]
}
]
However if you do that, the commits won't be picked up by the changelog plugin properly anymore.
Have you try using the conventionalcommits
preset?
Nervermind. That's actually a bug: https://github.com/semantic-release/commit-analyzer/issues/153
I'll fix it ASAP.
@pvdlg Thank you so much for your help!
It seems that package isn't supported, but is available at https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-conventionalcommits
When using
conventionalcommits
as thepreset
option, I run into the problem below, where it stops execution early at the last step below.It seems that if
loadedConfig
inload-parser-config
is a function, it attempts to promisify the function. However, it looks like the config being returned here is already a Promise: https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-conventionalcommits/index.js