fix(ci): drop @semantic-release/git + changelog, GH006 blocks direct push to protected main - #43
Conversation
…push to protected main @semantic-release/git's prepare step pushes a version-bump commit + tags directly to main via git push, which required_pull_request_reviews branch protection now rejects (GH006: 'Changes must be made through a pull request'). Confirmed live: node-auvik#42's Release run computed the next version correctly (1.3.3) but failed at the git push step, so no tag/release was ever created. Same root cause and fix already proven on alternative-payments-mcp#18 and threatlocker-mcp#44 (task_1786452397590_72268711, Aaron-approved 2026-08-11, 57-repo fleet rollout): drop @semantic-release/git and @semantic-release/changelog (the changelog file write is orphaned once nothing commits it back), keep @semantic-release/npm + @semantic-release/github, which publish via API/registry calls rather than a direct push to the protected branch.
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
There was a problem hiding this comment.
Verified: this fix is byte-identical in shape to the already-merged alternative-payments-mcp#18 / threatlocker-mcp#44 (drop @semantic-release/git + changelog, keep npm+github). Confirmed live: node-auvik's Release run on e6fb565 computed v1.3.3 correctly via commit-analyzer but failed at the git-push step with GH006 (branch protection). No tag/release exists yet. node-auvik's release.yml already uses the two-job split from #41 (no npm install happens in the write-scoped release job), so this PR alone is the complete fix here -- no separate .npmrc change needed for this repo.
|
🎉 This PR is included in version 1.3.3 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Problem
node-auvik#42's Release run (mergee6fb5652) correctly computed next version1.3.3but failed at@semantic-release/git's prepare step: it pushes a version-bump commit + tags directly tomain, whichrequired_pull_request_reviewsbranch protection now rejects (GH006: Changes must be made through a pull request). No tag/release was created.Fix
Drop
@semantic-release/gitand@semantic-release/changelog(the changelog file write is orphaned once nothing commits it back to the branch). Keep@semantic-release/npm+@semantic-release/github, which publish via API/registry calls rather than a direct git push.Same root cause and proven fix already shipped on
alternative-payments-mcp#18andthreatlocker-mcp#44— part of the Aaron-approved 57-repo fleet rollout (task_1786452397590_72268711), of which this repo was apparently missed.Verification plan
Once merged, the next release-eligible push should complete Release end-to-end (tag + GitHub Release created) with no push-to-main step in the pipeline at all.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit