Skip to content

Conversation

@Gudahtt
Copy link
Member

@Gudahtt Gudahtt commented Apr 20, 2021

Rather than always obtaining the 'currentVersion' of the project from an environment variable, it can now be passed in via a CLI flag instead.

Additionally, the validation for the version has been improved. It will now throw if the current version isn't a valid SemVer version, as our update logic depends upon it being valid. We also now ensure that the error message for a messing version is only printed when it was strictly required (it wasn't used for non-RC updates), and that the script terminates at that point.

Closes #10

@Gudahtt Gudahtt requested a review from a team as a code owner April 20, 2021 21:08
@Gudahtt Gudahtt force-pushed the allow-configuring-current-version branch 2 times, most recently from 87612be to 92f4c96 Compare April 21, 2021 11:19
brad-decker
brad-decker previously approved these changes Apr 21, 2021
Copy link

@brad-decker brad-decker left a comment

Choose a reason for hiding this comment

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

💯 LGTM.

Rather than always obtaining the 'currentVersion' of the project from
an environment variable, it can now be passed in via a CLI flag
instead.

Additionally, the validation for the version has been improved. It will
now throw if the current version isn't a valid SemVer version, as our
update logic depends upon it being valid. We also now ensure that the
error message for a messing version is only printed when it was
strictly required (it wasn't used for non-RC updates), and that the
script terminates at that point.

Closes #10
@Gudahtt Gudahtt force-pushed the allow-configuring-current-version branch from 92f4c96 to 454547b Compare April 21, 2021 14:13
@Gudahtt
Copy link
Member Author

Gudahtt commented Apr 21, 2021

Rebased to resolve conflicts

@Gudahtt Gudahtt merged commit 24704db into main Apr 21, 2021
@Gudahtt Gudahtt deleted the allow-configuring-current-version branch April 21, 2021 14:53
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.

Allow setting version via CLI

3 participants