Skip to content

Conversation

@ibrahimcesar
Copy link
Owner

…orkflow

This PR adds two critical fixes to the auto-release workflow to enable republishing packages and handling workflow re-runs gracefully.

Changes:

  1. Add 'none' option for republishing (no version bump)

    • Added 'none' as first option in version_bump dropdown
    • When selected, uses current package.json version
    • Skips version bump commit to package.json
    • Skips push to main branch (only pushes tag)
    • Shows "Republish (no version bump)" in release summary
  2. Handle existing tags and releases

    • Checks and deletes existing local tags before creating
    • Checks and deletes existing remote tags before pushing
    • Checks and deletes existing GitHub releases before creating
    • Uses || true to gracefully handle deletion failures
    • Prevents "tag already exists" errors on re-runs

Why these fixes are needed:

  • Fixes failed NPM publications without bumping version
  • Allows updating package registry configuration
  • Enables re-running failed release workflows
  • Supports republishing with corrected workflow settings

Usage:

  1. Go to Actions → Automated Release
  2. Select "none" for version bump to republish v3.3.0
  3. Workflow will delete existing v3.3.0 tag/release and recreate

All 51 tests passing ✅

…orkflow

This PR adds two critical fixes to the auto-release workflow to enable
republishing packages and handling workflow re-runs gracefully.

Changes:

1. **Add 'none' option for republishing** (no version bump)
   - Added 'none' as first option in version_bump dropdown
   - When selected, uses current package.json version
   - Skips version bump commit to package.json
   - Skips push to main branch (only pushes tag)
   - Shows "Republish (no version bump)" in release summary

2. **Handle existing tags and releases**
   - Checks and deletes existing local tags before creating
   - Checks and deletes existing remote tags before pushing
   - Checks and deletes existing GitHub releases before creating
   - Uses || true to gracefully handle deletion failures
   - Prevents "tag already exists" errors on re-runs

Why these fixes are needed:
- Fixes failed NPM publications without bumping version
- Allows updating package registry configuration
- Enables re-running failed release workflows
- Supports republishing with corrected workflow settings

Usage:
1. Go to Actions → Automated Release
2. Select "none" for version bump to republish v3.3.0
3. Workflow will delete existing v3.3.0 tag/release and recreate

All 51 tests passing ✅
@ibrahimcesar ibrahimcesar merged commit 0c44a2e into main Nov 15, 2025
5 of 7 checks passed
@github-actions
Copy link
Contributor

size-limit report 📦

Path Size
ES Module 3.05 KB (0%)
CommonJS 3.02 KB (0%)
CSS 1.05 KB (0%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants