Skip to content

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

Merged
tjenkinson merged 3 commits into
masterfrom
bail-on-invalid-tag
Aug 26, 2022
Merged

tjenkinson merged 3 commits into
masterfrom
bail-on-invalid-tag

Conversation

@tjenkinson

@tjenkinson tjenkinson commented Aug 18, 2022 •

Copy link
Copy Markdown
Member

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' })

@tjenkinson tjenkinson Aug 18, 2022 •

Copy link
Copy Markdown
Member Author

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
Comment thread scripts/set-package-version.js Resolved
@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
akashchamp pushed a commit to akashchamp/hls.js that referenced this pull request Sep 25, 2026
…4855)

* bail if new tag does not directly follow previous version

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

refs video-dev#4841

* do not bail if tag exists, because it would for real tags
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