Repository navigation
feat(version, publish): Added support for --dry-run option - #3401
Closed
meteabduraman wants to merge 5 commits into
Closed
meteabduraman wants to merge 5 commits into
meteabduraman wants to merge 5 commits into
Conversation
Member
|
Hi @meteabduraman thanks a lot for taking the time to submit this PR! We already have something a lot more comprehensive in the works for I spoke about the upcoming changes to Many thanks again |
|
@JamesHenry I see that #51 had the Was there any progress here, and/or would it be open for a new take? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added support for
--dry-runoption inlerna versionandlerna publish.Description
Declared a new
--dry-runoption of typeboolean.Whenever this option is used with one of the above commands (either
versionorpublish), the confirmations (confirmVersions()andconfirmPublish()functions) automatically get rejected and an info log withAuto-rejected. This is a dry-run.appears in the console.Motivation and Context
Folkes that would like to use lerna in CIs would enjoy this change (I would).
It will be nice to have a pipeline step that would preview the versions to be changed and add some sort of manual validation to really make sure we're publishing the right versions (that's actually a use case I want to implement in one of the pipelines I work on).
There has been an ongoing discussion since 2016 regarding this feature but not any concrete action from someone.
Maybe this PR turns things around a bit 🤓
closes #51
and maybe also a step closer to address #1094
How Has This Been Tested?
Added 2 unit tests for each command. They passed.
Locally tested with a locally published lerna version.
Types of changes
Checklist: