Skip to content

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

@laduke

Description

@laduke

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions