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

bail if new tag does not directly follow previous version #4855

Merged
merged 3 commits into from
Aug 26, 2022

Conversation

tjenkinson
Copy link
Member

@tjenkinson tjenkinson commented Aug 18, 2022

This PR will...

Bail if new tag (stable or prerelease) does not directly follow previous version.

For prereleases there's no restriction on the prerelease part (following the -), other than the stable part must follow a previous stable version.

refs #4841

Why is this Pull Request needed?

This is to try and prevent typos that could trigger an incorrect version publish into the future that cannot be undone.

Something similar happened in #4841

This is to try and prevent typos that could trigger an incorrect version publish into the future that cannot be undone.

refs #4841
@tjenkinson tjenkinson requested a review from robwalch August 18, 2022 09:32
function exec(cmd) {
return require('child_process').execSync(cmd).toString().trim();
return require('child_process')
.execSync(cmd, { stdio: 'pipe' })
Copy link
Member Author

@tjenkinson tjenkinson Aug 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

without setting stdio the default for stdout is pipe but stderr goes through to console

@tjenkinson tjenkinson marked this pull request as ready for review August 18, 2022 09:35
@robwalch robwalch added this to the 1.2.2 milestone Aug 25, 2022
@tjenkinson tjenkinson merged commit ef0d09c into master Aug 26, 2022
@tjenkinson tjenkinson deleted the bail-on-invalid-tag branch August 26, 2022 21:36
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

Successfully merging this pull request may close these issues.

2 participants