feat: unified dry run mode via PUBLIB_DRYRUN#1794
Merged
cdklabs-automation merged 1 commit intomainfrom May 7, 2026
Merged
Conversation
…nAll publishers (npm, pypi, nuget, maven, golang) now support the\nPUBLIB_DRYRUN=true environment variable to skip actual publishing.\n\nExisting per-publisher variables (MAVEN_DRYRUN, DRYRUN for golang)\nare kept for backward compatibility but marked as deprecated.
rix0rrr
approved these changes
May 7, 2026
github-merge-queue Bot
pushed a commit
to projen/projen
that referenced
this pull request
May 7, 2026
Adds a `dry_run` checkbox input to the release workflow's `workflow_dispatch` trigger. This makes it easy to test the full release pipeline without actually publishing anything. When checked: - Publib stages (npm, pypi, maven, nuget, go) receive `PUBLIB_DRYRUN=true` in their step env, which publib handles natively since cdklabs/publib#1794 - The GitHub Releases step is skipped via an `if: ${{ !inputs.dry_run }}` condition Also adds `inputs` support to `WorkflowDispatchOptions` in the workflows model, which was previously an empty interface. --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.
All publishers now support a single
PUBLIB_DRYRUN=trueenvironment variable to skip actual publishing. Previously only Maven and Golang had dry run support via their own variables.The existing
MAVEN_DRYRUNandDRYRUN(golang) variables continue to work but are marked as deprecated in the documentation.