-
Notifications
You must be signed in to change notification settings - Fork 797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Step committing message #315
Comments
Looks like a minor bug. PR welcome! |
I've just tested with the following snippet and that shows the correct message for
Example 2$ yarn standard-version --sign --dry-run
> ...
> standard-version --sign "--dry-run"
✔ Running lifecycle script "prerelease"
ℹ - execute command: "if [[ "$(git rev-parse --abbrev-ref HEAD)" != "master" ]]; then exit -1; fi"
✔ bumping version in package.json from 0.1.0 to 0.2.0
✔ bumping version in package-lock.json from 0.1.0 to 0.2.0
✔ created CHANGELOG.md
✔ outputting changes to CHANGELOG.md
---
...
---
✔ committing package-lock.json and package.json and CHANGELOG.md
✔ tagging release v0.2.0
ℹ Run `git push --follow-tags origin master && npm publish` to publish |
I did some researching and it is definitely due to the steps being separated. More specifically, bump not being executed on @stevemao This issue is also worse than I described in my previous messages since An easy fix, in my case at least, could be to
I think a nicer solution would be to somehow know what files were updated in the bump step so those can be automatically added. Would that be a feasible option? I'm not sure how that would work, maybe by separating the Based on the reactions on above points, I'll be happy to change the code and create an PR for it. |
@vidavidorra Thanks for the write up and time spent on investigating this issue. I believe you know more than us at this point and a big PR might be hard for us to merge (but PR still welcome!!). @bcoe @hutson any thoughts? @vidavidorra perhaps you could join our slack channel and have a chat with people. Cheers. |
This fixes an issue with standard-version, see conventional-changelog/standard-version#315.
I've added this in #320, which was released in v6.0.0 so I'll close this. |
I've seen that the message in the commit step is not correct. That is the message that is displayed on the terminal when executing a release script that creates the commit. Instead of
committing CHANGELOG.md
I'd expect it to becommitting package.json package-lock.json CHANGELOG.md
or justcommitting staged files
.I'm running standard-version 5.0.1.
package.json
The text was updated successfully, but these errors were encountered: