Skip to content

Commit 2544fe0

Browse files
committed
Prevent final release on workflow cancellation
This ensures that the `publish-final-release` job in the CI workflow only proceeds if the workflow execution has not been explicitly cancelled. This prevents partial or unintended final release publishing actions.
1 parent 9b8c59b commit 2544fe0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,7 @@ jobs:
882882
runs-on: ubuntu-latest
883883
needs: [determine-release-type, validate-production, publish-to-npm]
884884
if: >-
885+
!cancelled() &&
885886
needs.determine-release-type.outputs.release_type == 'production' &&
886887
needs.publish-to-npm.result == 'success' &&
887888
needs.validate-production.outputs.is_dry_run != 'true'

0 commit comments

Comments
 (0)