From 68631487287630dfa06d00598d1a9884b2548deb Mon Sep 17 00:00:00 2001 From: David Pierce Date: Wed, 5 Aug 2026 18:07:15 +0000 Subject: [PATCH] fix(release): handle npm dist-tag deletion failures on registries that forbid it (#28694) --- .github/actions/publish-release/action.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/actions/publish-release/action.yml b/.github/actions/publish-release/action.yml index 63fbb22842..36ac640b97 100644 --- a/.github/actions/publish-release/action.yml +++ b/.github/actions/publish-release/action.yml @@ -172,7 +172,7 @@ runs: --workspace="${INPUTS_CORE_PACKAGE_NAME}" \ --tag staging-tmp if [[ "${INPUTS_DRY_RUN}" == "false" ]]; then - npm dist-tag rm ${INPUTS_CORE_PACKAGE_NAME} staging-tmp + npm dist-tag rm ${INPUTS_CORE_PACKAGE_NAME} staging-tmp || echo "Warning: Failed to remove staging-tmp tag (this is normal on registries that forbid tag deletion, like Wombat)" fi - name: '🔗 Install latest core package' @@ -251,7 +251,7 @@ runs: ${PUBLISH_TARGET} \ --tag staging-tmp if [[ "${INPUTS_DRY_RUN}" == "false" ]]; then - npm dist-tag rm ${INPUTS_CLI_PACKAGE_NAME} staging-tmp + npm dist-tag rm ${INPUTS_CLI_PACKAGE_NAME} staging-tmp || echo "Warning: Failed to remove staging-tmp tag (this is normal on registries that forbid tag deletion, like Wombat)" fi - name: 'Get a2a-server Token' @@ -278,9 +278,9 @@ runs: --dry-run="${INPUTS_DRY_RUN}" \ --workspace="${INPUTS_A2A_PACKAGE_NAME}" \ --tag staging-tmp - if [[ "${INPUTS_DRY_RUN}" == "false" ]]; then - npm dist-tag rm ${INPUTS_A2A_PACKAGE_NAME} staging-tmp - fi + if [[ "${INPUTS_DRY_RUN}" == "false" ]]; then + npm dist-tag rm ${INPUTS_A2A_PACKAGE_NAME} staging-tmp || echo "Warning: Failed to remove staging-tmp tag (this is normal on registries that forbid tag deletion, like Wombat)" + fi - name: '🏷️ Tag release' uses: './.github/actions/tag-npm-release'