feat(ng-dev/release): implement --stage-only and build cleanup#3767
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a "stage-only" mode to the release publishing tool, allowing users to run staging steps (bumping versions, generating changelogs, building, and creating a PR) and exit before publishing. This is achieved by adding a --stage-only CLI flag, a new StageOnlySuccessError to signal successful staging, and logic to clean up built package directories. The review feedback suggests optimizing the cleanup process by parallelizing directory deletion with Promise.all and removing a redundant stageOnly property declaration in ReleasePublishOptions since it is already inherited from ReleaseToolFlags.
|
This PR was merged into the repository. The changes were merged into the following branches:
|
This PR implements the --stage-only flag for local release staging and automatic build directory cleanup, allowing early exit before publishing.