Skip to content

feat: unified dry run mode via PUBLIB_DRYRUN#1794

Merged
cdklabs-automation merged 1 commit intomainfrom
mrgrain/feat/publib-dryrun
May 7, 2026
Merged

feat: unified dry run mode via PUBLIB_DRYRUN#1794
cdklabs-automation merged 1 commit intomainfrom
mrgrain/feat/publib-dryrun

Conversation

@mrgrain
Copy link
Copy Markdown
Contributor

@mrgrain mrgrain commented May 7, 2026

All publishers now support a single PUBLIB_DRYRUN=true environment variable to skip actual publishing. Previously only Maven and Golang had dry run support via their own variables.

The existing MAVEN_DRYRUN and DRYRUN (golang) variables continue to work but are marked as deprecated in the documentation.

…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.
@mrgrain mrgrain temporarily deployed to IntegTestCredentials May 7, 2026 07:47 — with GitHub Actions Inactive
@cdklabs-automation cdklabs-automation added this pull request to the merge queue May 7, 2026
Merged via the queue into main with commit 8dbeb3b May 7, 2026
9 checks passed
@cdklabs-automation cdklabs-automation deleted the mrgrain/feat/publib-dryrun branch May 7, 2026 08:06
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>
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.

3 participants