From 91400c5b0be225b1ae0a8696cd84845cb7f9cf03 Mon Sep 17 00:00:00 2001 From: Tommaso Sciortino Date: Tue, 31 Mar 2026 19:54:53 +0000 Subject: [PATCH] don't try to remove tags in dry run (#24356) --- .github/actions/publish-release/action.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/actions/publish-release/action.yml b/.github/actions/publish-release/action.yml index 4496a7fe84..9a31142598 100644 --- a/.github/actions/publish-release/action.yml +++ b/.github/actions/publish-release/action.yml @@ -175,7 +175,9 @@ runs: --dry-run="${INPUTS_DRY_RUN}" \ --workspace="${INPUTS_CORE_PACKAGE_NAME}" \ --no-tag - npm dist-tag rm ${INPUTS_CORE_PACKAGE_NAME} false + if [[ "${INPUTS_DRY_RUN}" == "false" ]]; then + npm dist-tag rm ${INPUTS_CORE_PACKAGE_NAME} false + fi - name: '🔗 Install latest core package' working-directory: '${{ inputs.working-directory }}' @@ -248,7 +250,9 @@ runs: --dry-run="${INPUTS_DRY_RUN}" \ --workspace="${INPUTS_A2A_PACKAGE_NAME}" \ --no-tag - npm dist-tag rm ${INPUTS_A2A_PACKAGE_NAME} false + if [[ "${INPUTS_DRY_RUN}" == "false" ]]; then + npm dist-tag rm ${INPUTS_A2A_PACKAGE_NAME} false + fi - name: '🔬 Verify NPM release by version' uses: './.github/actions/verify-release'