Skip to content

ci(release): drop @semantic-release/git so releases work under branch protection#106

Merged
strausmann merged 1 commit into
mainfrom
fix/release-no-git-plugin
Jul 17, 2026
Merged

ci(release): drop @semantic-release/git so releases work under branch protection#106
strausmann merged 1 commit into
mainfrom
fix/release-no-git-plugin

Conversation

@strausmann

Copy link
Copy Markdown
Owner

Problem

After enabling branch protection (required status checks) on main, the nightly/dispatch release fails: @semantic-release/git commits CHANGELOG.md/package.json back to main and pushes directly — which protection now rejects. Result: tags/images stop being produced (v1.9.0 release job failed).

Fix

Remove @semantic-release/git (and the now-orphaned @semantic-release/changelog). semantic-release still: analyses commits, generates release notes, creates the git tag + GitHub Release, and the workflow builds/pushes the Docker image. No direct push to the protected branch → protection stays fully intact for Dependabot/PRs.

Tradeoff: CHANGELOG.md is no longer committed into the repo; release notes live in the GitHub Releases. Alternative (not chosen): a bypass PAT to keep the changelog commit.

Branch protection on main (required status checks) blocks the direct push
that @semantic-release/git performs (changelog + version commit back to
main), so releases failed after protection was enabled. Release now only
tags + creates the GitHub Release (notes still generated) + builds the
Docker image — no direct push to the protected branch, protection stays
intact for Dependabot/PRs.
Copilot AI review requested due to automatic review settings July 17, 2026 17:00
@gemini-code-assist

Copy link
Copy Markdown

Caution

The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased.

@strausmann
strausmann merged commit bdecb01 into main Jul 17, 2026
5 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.9.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repository’s semantic-release configuration to avoid committing back to the protected main branch, so scheduled/manual releases can succeed under required status checks while still producing tags and GitHub Releases.

Changes:

  • Removed @semantic-release/git from the release pipeline to prevent direct pushes to main.
  • Removed @semantic-release/changelog so CHANGELOG.md is no longer generated/committed as part of releases.

Comment thread .releaserc.json
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants