momocow / semantic-release-gitmoji

✨🐛💥 A semantic-release plugin for gitmojis. Different from conventional changelog, Gitmoji commits are used to determine a release type and generate release notes.
MIT License
86 stars 20 forks source link

The analyzeCommits plugin must return a valid semver release type. The valid values are: patch, minor, major. #96

Closed jebarpg closed 3 months ago

jebarpg commented 4 months ago

EANALYZECOMMITSOUTPUT The analyzeCommits plugin returned an invalid value. It must return a valid semver release type. The analyzeCommits plugin must return a valid semver release type. The valid values are: patch, minor, major.

The analyzeCommits function of the semantic-release-gitmoji returned prerelease instead.

We recommend to report the issue to the semantic-release-gitmoji authors, providing the following informations:

* The semantic-release version: 22.0.12
* The semantic-release logs from your CI job
* The value returned by the plugin: prerelease
* A link to the semantic-release plugin developer guide: https://github.com/semantic-release/semantic-release/blob/master/docs/developer-guide/plugin.md
momocow commented 3 months ago

Thank for reporting the issue.

I'm surprised that this bug was actually originated in 2018 but reported in 2024. lol

I found semantic-release changed their release types at Nov 30, 2018 while release types defined in this plugin was committed at Nov 16, 2018.

That is, the set of release types used in the plugin was only valid for 2 weeks, but become invalid for the rest of 5 years. lol

jebarpg commented 3 months ago

off-topic but, momocow is that like peach cow... in japanese momo is peach.

jebarpg commented 3 months ago

Thanks for the quick reply btw :D I'll look forward to closing this issue.

momocow commented 3 months ago

Hello, would you mind providing your configs?

The solution to this issue is quite simple, just change prerelease to another release level in release rules in your configs.

momocow commented 3 months ago

off-topic but, momocow is that like peach cow... in japanese momo is peach.

Ha ha, you know quite well about Japanese. I've also heard about it but momocow is nothing about peach, but the sound of cows, aka 'moo'. 😆

Peach cow gives cute impression to me anyway, I like it.

jebarpg commented 3 months ago

Thank you! I fixed it. closing this issue now.