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
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
continue-on-error: true

- name: Rollback on push failure
if: steps.push.outcome == 'failure'
if: ${{ !inputs.dry_run && steps.push.outcome == 'failure' }}
run: |
echo "❌ Push failed, rolling back..."
git tag -d ${{ steps.version.outputs.new_version }}
Expand All @@ -119,7 +119,7 @@ jobs:
continue-on-error: true

- name: Rollback on publish failure
if: steps.publish.outcome == 'failure'
if: ${{ !inputs.dry_run && steps.publish.outcome == 'failure' }}
run: |
echo "❌ npm publish failed, rolling back..."
git push origin :refs/tags/${{ steps.version.outputs.new_version }}
Expand Down