Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ jobs:
pnpm publish --provenance --access public --no-git-checks

- name: Cleanup on failure
if: failure() && steps.create_release.outcome == 'success'
if: failure()
env:
RELEASE_VERSION: ${{ steps.version.outputs.new_version }}
GITHUB_TOKEN: ${{ secrets.ACTIONS_KEY }}
Expand All @@ -526,9 +526,9 @@ jobs:
fi

# Proceed with cleanup only if validation passes
gh release delete "$RELEASE_VERSION" --yes
git tag -d "$RELEASE_VERSION"
git push --delete origin "$RELEASE_VERSION"
gh release delete "$RELEASE_VERSION" --yes || true
git tag -d "$RELEASE_VERSION" || true
git push --delete origin "$RELEASE_VERSION" || true

- name: Notify on failure
if: failure()
Expand Down
Loading