From 970ec80de5cf159b414ded51bc62550102abbfd1 Mon Sep 17 00:00:00 2001 From: Mickael Kasinski Date: Thu, 16 Jul 2026 17:44:35 +0200 Subject: [PATCH] ci: drop @semantic-release/git to work with protected main The @semantic-release/git plugin pushes a release commit directly to main, which the branch protection ruleset rejects ("changes must be made through a pull request"), aborting the release before npm publish. Remove it (and @semantic-release/changelog, whose output was only ever persisted by the git plugin). semantic-release still publishes to npm, pushes the version tag, and creates the GitHub Release with notes. The committed CHANGELOG.md and in-repo version bump are dropped; the GitHub Releases page is the source of truth for release notes. Co-Authored-By: Claude Opus 4.8 --- .releaserc.json | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.releaserc.json b/.releaserc.json index 8eec102..8a27fd0 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -3,14 +3,7 @@ "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", - ["@semantic-release/changelog", { - "changelogFile": "CHANGELOG.md" - }], "@semantic-release/npm", - "@semantic-release/github", - ["@semantic-release/git", { - "assets": ["package.json", "package-lock.json", "CHANGELOG.md"], - "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" - }] + "@semantic-release/github" ] }