The changelog generation script is called at the version stage of npm's lifecycle (see package.json). We shouldn't muck with git in the middle of npm's publishing process.
I had added git checkout CHANGELOG.md as a courtesy in case the user forgot to reset the CHANGELOG after previewing it. For now, let's remove it and just tell the user to ensure CHANGELOG is clean.
The changelog generation script is called at the
version
stage of npm's lifecycle (see package.json). We shouldn't muck with git in the middle of npm's publishing process.I had added
git checkout CHANGELOG.md
as a courtesy in case the user forgot to reset the CHANGELOG after previewing it. For now, let's remove it and just tell the user to ensure CHANGELOG is clean.See #902.