496dfff41a6ee272bb8b59a74046905561b9c5fa
If a release workflow fails after creating the branch (e.g. pnpm setup failure, network error) but before creating the tag, re-triggering the workflow previously failed at 'git push origin $BRANCH' because the branch already existed. Changes: - Commit and tag: check for existing remote branch and delete it before re-creating, so re-triggers are clean. Safe because check-tag skips when the tag already exists — we only reach this point when the tag does NOT exist yet. - Create PR: guard with 'gh pr view' so a pre-existing PR from a failed run is reused instead of causing 'pr already exists' failure. Split the single 'git push origin $BRANCH --tags' into two pushes (branch and tag separately) to avoid any flag ambiguity.
Description
Languages
Shell
100%