release-it / conventional-changelog

Conventional changelog plugin for release-it
MIT License
125 stars 38 forks source link

Skip pre-release versions when generating proper version #87

Open haukurmar opened 6 months ago

haukurmar commented 6 months ago

I've been looking everywhere for a solution but don't seem to find a solution.

My scenario.

I have a library that generates a changelog on every version, but when I merge to master and release from there. I want the "real" changelog to only show the proper versions, i.e. not include versions like "0.3.0-feature-some-ui-feature.0" or "0.3.0-beta.0".

I even have a separate pre-release config file where I pass in the basefile's plugin, and I don't want to stop using those plugins.

Any way to configure this?

module.exports = { plugins: { ...baseFile.plugins }, ..... }

Basefile: module.exports = { plugins: { "@release-it/conventional-changelog": { path: ".", infile: "CHANGELOG.md", preset: "conventionalcommits", gitRawCommitsOpts: { path: ".", }, }, }, .... }

webpro commented 1 month ago

See this and subsequent sections: https://github.com/release-it/release-it/blob/main/docs/git.md#tag-match