semantic-release / changelog

:blue_book: semantic-release plugin to create or update a changelog file
MIT License
302 stars 27 forks source link

How to create just CHANGELOG.md file? #114

Open duruer opened 3 years ago

duruer commented 3 years ago

Hi, I would like to create just CHANGELOG.md file with just simple command with npx without deploying or publishing. I couldn't do myself this, that's why I open the issue here.

I tried this: yarn semantic-release --generate-notes --prepare

but it doesn't generate any file.

travi commented 3 years ago

if you are not looking to publish, semantic-release may not be the right tool for the job. you may find conventional-changelog a better fit for what you are after

duruer commented 3 years ago

Well, I'm already publishing my NPM package, but I have 2 branches such as master and dev. I publish on master branch and develop on dev branch. But if master also publishes CHANGELOG.md and at the same time updating package.json, then semantic-release-bot will commit a new commit. And we need to merge back to dev branch from master branch.

So my problem is I try to generate CHANGELOG.md on dev too without merging master again. If you have any other idea or solution for this kind of situation, I'm listening...