-
Notifications
You must be signed in to change notification settings - Fork 708
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
Allow passing in version parameter from command line #194
Comments
I thought about it, and it was an option in the old version. But it doesn't fit the paradigm since version is just a context variable. I could argue things like repository should be able to specified as a flag too. Use config flag, It's a generic solution. |
Is there any documentation on the config script format? The linked example is super obscure |
I came across a similar issue. I needed to generate release notes for the latest git tag (the package had already been released and I was just generating notes for the previous release). Also of note, I don't update the version in What I ended up doing was creating a context file with the version I wanted generate release notes for, and then telling Here's the script I used: echo "{\"version\": \"${CI_COMMIT_TAG}\"}" > /tmp/context.json && $(yarn bin)/conventional-changelog --preset @hutson/config --release-count 2 --context /tmp/context.json |
Documentation on how to use the |
I'm using
conventional-changelog-cli
to release something that's not a node repository (that still requires me to have node installed for other reasons). Currently I have as part of my "release" script that it generates apackage.json
with the correct version in it, callsconventional-changelog
, then just deletes thepackage.json
again. It would be great if parameters frompackage.json
could be specified other ways. At least the version parameter should be able to set using the command line easily IMHO.The text was updated successfully, but these errors were encountered: