Skip to content

chore(ci): add dry-run mode to release workflow#93

Merged
lukascivil merged 1 commit intomasterfrom
chore/add-dry-run-mode
Apr 23, 2026
Merged

chore(ci): add dry-run mode to release workflow#93
lukascivil merged 1 commit intomasterfrom
chore/add-dry-run-mode

Conversation

@lukascivil
Copy link
Copy Markdown
Owner

@lukascivil lukascivil commented Apr 23, 2026

Objective

Allow previewing the release workflow (versioning/publishing) without producing side effects — no tag update, no npm publish, and no S3 deploy — so release changes can be validated safely before a real run.

What was done

  • Added a dry_run boolean input to the release-and-publish workflow in .github/workflows/release-and-publish.yml (defaults to false).
  • Routed the Version And Publishment step to yarn release:dry-run when dry_run is true, otherwise the existing yarn release.
  • Guarded the Tag last-release step and the Deploy Json Difference to Amazon S3 step with if: github.event.inputs.dry_run != 'true' so they are skipped during a dry run.
  • Added the release:dry-run script in package.json, which forwards --dry-run to yarn nx run-many --target=version --parallel=1.
  • Removed the long-dead .github/workflows/npm-publish-github-packages.yml file (entire contents were commented out).

Test plan

  • From the GitHub Actions UI, run release-and-publish with dry_run=true and name=all; confirm versioning runs but no tag is updated, no package is published, and no S3 deploy step executes.
  • Run the same workflow with dry_run=false (or unchecked) on a test branch and confirm the existing behavior (tag, publish, S3 deploy) is unchanged.
  • Run yarn release:dry-run --all locally and verify it invokes nx run-many --target=version --parallel=1 --dry-run without writing changes.

@lukascivil lukascivil self-assigned this Apr 23, 2026
@lukascivil lukascivil changed the title chore: add dry run mode chore(ci): add dry-run mode to release workflow Apr 23, 2026
@lukascivil lukascivil merged commit 8da8911 into master Apr 23, 2026
4 checks passed
@lukascivil lukascivil deleted the chore/add-dry-run-mode branch April 23, 2026 00:26
@lukascivil lukascivil restored the chore/add-dry-run-mode branch April 23, 2026 00:30
@lukascivil lukascivil deleted the chore/add-dry-run-mode branch April 23, 2026 00:30
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.

1 participant