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

Programatic Usage: Release-Version Premature Exit #1097

Open
adam-clark-method opened this issue Apr 17, 2024 · 1 comment
Open

Programatic Usage: Release-Version Premature Exit #1097

adam-clark-method opened this issue Apr 17, 2024 · 1 comment

Comments

@adam-clark-method
Copy link

I have a script that creates a build artifact. I need to know the future version number to include in the artifact name.

When I run release({ 'release-version': true, increment: increment,...}) within my script the script exits cause of the process.exit(0) found here:

https://github.com/release-it/release-it/blob/main/lib/index.js#L103-L106

Is there a different way to get the programatic version? Do I need to create my own plugin?

@webpro
Copy link
Collaborator

webpro commented Apr 18, 2024

You could execute release-it in a child process for this. Or, indeed, create a plugin.

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

2 participants