From bbed884d15354b5cebf2493371f20dc2d5e83eaf Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 5 Oct 2026 14:42:39 +0000 Subject: [PATCH] Create the GitHub release even when the publish command fails Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01SbW3kQbcEhh4JErZVqpTKF --- .github/workflows/release.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fb78ee179..4177a2871 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -104,9 +104,12 @@ jobs: # The `published` output of the action stays empty with Changesets 3, which # no longer prints the `New tag:` lines the action looks for. Without # pending changesets the action runs the publish command, so the release is - # created whenever it does not exist yet. + # created whenever it does not exist yet. It is created even when the + # publish command fails (for example when npm rejects a package that was + # already staged in an earlier run), the packages that were published + # should not stay without the release. - name: Create GitHub release - if: steps.changesets.outputs.hasChangesets == 'false' + if: ${{ !cancelled() && steps.changesets.outputs.hasChangesets == 'false' }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: |