Skip to content

fix: release workflow always commits version bump to main#79

Draft
Copilot wants to merge 2 commits intomainfrom
copilot/review-release-workflow
Draft

fix: release workflow always commits version bump to main#79
Copilot wants to merge 2 commits intomainfrom
copilot/review-release-workflow

Conversation

Copy link
Contributor

Copilot AI commented Mar 10, 2026

The release workflow used git push origin HEAD, which pushes to whichever branch triggered workflow_dispatch. If run from a non-main branch, the version bump commit and CHANGELOG update would never land on main.

Changes

  • Checkout: Added ref: main so the release job always starts from the latest main, regardless of dispatch branch.
  • Push: Changed git push origin HEADgit push origin HEAD:main to explicitly target main.
- uses: actions/checkout@v6
  with:
    fetch-depth: 0
    ref: main                        # always start from main
    token: ${{ secrets.GITHUB_TOKEN }}

- name: Push commit and tags
  run: |
    git push origin HEAD:main        # explicit target instead of HEAD
    git push --tags

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: ThePlenkov <6381507+ThePlenkov@users.noreply.github.com>
@sonarqubecloud
Copy link

Copilot AI changed the title [WIP] Review release workflow to ensure proper versioning and commits fix: release workflow always commits version bump to main Mar 10, 2026
@nx-cloud
Copy link
Contributor

nx-cloud bot commented Mar 10, 2026

View your CI Pipeline Execution ↗ for commit e3b57e7

Command Status Duration Result
nx affected -t lint test build e2e-ci --verbose... ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2026-03-10 07:26:38 UTC

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