Conversation
…lation Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
✅ Coverage Check PassedOverall Coverage
📁 Per-file Coverage Changes (1 files)
Coverage comparison generated by |
There was a problem hiding this comment.
Pull request overview
Updates the release workflow to avoid branch protection failures during the version bump step by pushing only the release tag, not the bump commit, so downstream jobs can still check out and build from the tag.
Changes:
- Replace
git push origin HEAD --tagswith a tag-only pushgit push origin "v$VERSION"in theBump Versionjob.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
| @@ -60,7 +60,7 @@ jobs: | |||
| git add package.json package-lock.json | |||
| git commit -m "$VERSION" | |||
| git tag "v$VERSION" | |||
There was a problem hiding this comment.
Pushing only the tag means the version-bump commit (with updated package.json/package-lock.json) never lands on the triggering branch. Since this job checks out the branch (main/v*.x) and runs npm version ... based on the version in that branch, the next release run will compute the same VERSION again and then fail when attempting to create/push an already-existing v$VERSION tag. Consider either (a) updating the workflow to base the bump on the latest v* tag (checkout latest tag before npm version), or (b) pushing the bump commit via a PR/merge mechanism that satisfies branch protection so the branch version advances between releases.
| git tag "v$VERSION" | |
| git tag "v$VERSION" | |
| # Push the version-bump commit to the current branch so its version advances | |
| git push origin HEAD | |
| # Push the corresponding version tag |
🏗️ Build Test Suite Results
Overall: 0/8 ecosystems passed — ❌ FAIL Error DetailsAll The
|
The
Bump Versionjob inrelease.ymlwas pushing the version bump commit directly tomain(git push origin HEAD --tags), which is rejected by branch protection rules requiring 25 status checks (GH013). The tag push succeeded; only the branch push failed.Change
Replace the combined push with a tag-only push:
Pushing a tag by ref transfers the underlying commit objects to the remote without updating
refs/heads/main. All downstream jobs already check out by tag (ref: ${{ needs.bump-version.outputs.version }}), so they receive the version-bumpedpackage.jsonwithout any other changes needed.Original prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.