Skip to content

fix: remove @semantic-release/git plugin to avoid branch protection conflicts#7

Merged
CoffeeCupTechWriting merged 1 commit into
mainfrom
fix/remove-git-plugin
Jan 17, 2026
Merged

fix: remove @semantic-release/git plugin to avoid branch protection conflicts#7
CoffeeCupTechWriting merged 1 commit into
mainfrom
fix/remove-git-plugin

Conversation

@CoffeeCupTechWriting
Copy link
Copy Markdown
Owner

Summary

Remove @semantic-release/git from .releaserc configuration to avoid conflicts with protected main branch.

Why

  • GitHub Actions cannot push directly to protected branches (even with special permissions)
  • @semantic-release/git tried to push commit updates and tags directly
  • This caused release failures with 'GH006: Protected branch update failed'

What still works

  • ✅ NPM package publication
  • ✅ GitHub Releases creation with tags
  • ✅ Release notes generation
  • ✅ Version bumping

What changes

  • ❌ No commit updates pushed to main (but GitHub Release keeps full history)
  • This is standard practice for public packages

Test plan

  • PR checks pass
  • .releaserc is valid JSON

…nflicts

- Remove @semantic-release/git from .releaserc
- GitHub Actions cannot push directly to protected main branch
- semantic-release will still:
  - Publish to NPM automatically
  - Create GitHub Releases with tags
  - Generate release notes
- This simplifies the workflow and avoids branch protection conflicts
@CoffeeCupTechWriting CoffeeCupTechWriting merged commit e13d9cf into main Jan 17, 2026
1 check passed
@CoffeeCupTechWriting CoffeeCupTechWriting deleted the fix/remove-git-plugin branch January 17, 2026 22:33
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.

2 participants