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

How to access the release type in life cycle scripts? #150

Open
davidsneighbour opened this issue May 17, 2024 · 0 comments
Open

How to access the release type in life cycle scripts? #150

davidsneighbour opened this issue May 17, 2024 · 0 comments
Labels
question Further information is requested

Comments

@davidsneighbour
Copy link

I tried looking for something about this in the docs or existing issues, but didn't succeed probably due to me needing to know the right words... I would like to know inside of a lifecycle hook (for instance, prerelease) what kind of release I am creating (patch, minor, major). Is there an environment variable or something I can use to find that out? If not, what would be your approach about this?

As a specific example: In my prerelease script I run a dry-run release to retrieve the changelog. In minor or major releases this leads to wrong version numbers because I have one single prerelease hook that does the dry-run without forcing a version type.

@davidsneighbour davidsneighbour added the question Further information is requested label May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant