From de54fd7c9928aa059dcca79232f6dea7968249a1 Mon Sep 17 00:00:00 2001 From: mkorwel Date: Tue, 1 Jul 2025 16:06:33 -0500 Subject: [PATCH] feat(release): re-introduce dry-run option for manual runs --- .github/workflows/release.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a70cd5e707..b937e54933 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,6 +4,13 @@ on: push: tags: - 'v*.*.*' + workflow_dispatch: + inputs: + dry_run: + description: 'Whether to run the publish step in dry-run mode.' + required: true + type: boolean + default: true jobs: release: @@ -74,8 +81,7 @@ jobs: run: npm run publish:npm env: NPM_PUBLISH_TAG: ${{ steps.version.outputs.NPM_TAG }} - NPM_DRY_RUN: ${{ steps.run_type.outputs.NPM_DRY_RUN }} - NODE_AUTH_TOKEN: ${{ secrets. WOMBAT_TOKEN }} + NPM_DRY_RUN: ${{ inputs.dry_run && '--dry-run' || '' }} - name: Create GitHub Release if: steps.run_type.outputs.NPM_DRY_RUN == ''