go-semantic-release / semantic-release

📦🚀 semantic-release written in Go
https://go-semantic-release.xyz
MIT License
404 stars 43 forks source link

Provide option to generate only changelog. #126

Closed jeraldsm closed 2 years ago

jeraldsm commented 2 years ago

Hi,

It would be great, if there was an option to generate only changelog using go-sematic release for specific use cases. There are other tools like standard-version which has this feature, but go-semantic release changelog is more readable for our use case. Hope, this feature can be introduced.

Thanks in advance.

jeraldsm commented 2 years ago

I found, It is possible to generate only changelog with go-semantic-release by using --dry option

    - semantic-release --dry --token ${GL_TOKEN} --changelog "CHANGELOG.md" --changelog-generator-opt "emojis=true" --prepend-changelog
    - git add CHANGELOG.md
    - git commit -m "${CI_COMMIT_MESSAGE}"
christophwitzko commented 2 years ago

You are right @jeraldsm, the --dry flag is the way to go. 👍