Skip to content
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

Print only most recent version with --package? #288

Open
laduke opened this issue Apr 23, 2024 · 0 comments
Open

Print only most recent version with --package? #288

laduke opened this issue Apr 23, 2024 · 0 comments

Comments

@laduke
Copy link

laduke commented Apr 23, 2024

If I have 0.2.22 in my package-json, but the v0.2.22 tag doesn't exist yet:

npx auto-changelog --package --stdout --starting-version=v0.2.21  

prints the log for .21 and .22. I want only .22

if you put -p --starting-version=v0.2.22: it throws

TypeError: Invalid version. Must be a string. Got type "undefined".

I worked around with with some sed, but it's a pain to get the quoting right.

auto-changlog ... | sed -n "/\[v0.2.21\]/q;p"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant