Skip to content

Fix PyPI version mismatch - build jobs now checkout version bump tag#62

Merged
BnJam merged 2 commits into
mainfrom
copilot/fix-pypi-publish-version
Dec 6, 2025
Merged

Fix PyPI version mismatch - build jobs now checkout version bump tag#62
BnJam merged 2 commits into
mainfrom
copilot/fix-pypi-publish-version

Conversation

Copy link
Copy Markdown

Copilot AI commented Dec 6, 2025

Build jobs were checking out the PR merge commit instead of the version bump commit, causing PyPI to receive wheels with stale versions while GitHub releases showed the correct version.

Changes

Build jobs (linux-wheels, os-wheels):

  • Explicitly checkout version tag: ref: v${{ needs.version-bump.outputs.new_version }}
  • Add conditional: if: needs.version-bump.outputs.version_changed == 'true'

Publish job (pypi-publish):

  • Add version-bump to needs (required for output access)
  • Add conditional: if: needs.version-bump.outputs.version_changed == 'true'
linux-wheels:
  needs: [version-bump]
  if: needs.version-bump.outputs.version_changed == 'true'
  steps:
    - uses: actions/checkout@v4
      with:
        ref: v${{ needs.version-bump.outputs.new_version }}

Without an explicit ref, actions/checkout@v4 defaults to the workflow trigger commit (PR merge), which precedes the version bump commit. Build jobs now checkout the tag created by version-bump, ensuring source files contain the bumped version.

Original prompt

This section details on the original issue you should resolve

<issue_title>GitHub Release is correct version but PyPi publish is not synced to latest version</issue_title>
<issue_description></issue_description>

<agent_instructions>the publish CI is not pushing the correctly versioned release to PyPI</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💡 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: BnJam <16641658+BnJam@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix PyPi publish to sync with GitHub release version Fix PyPI version mismatch - build jobs now checkout version bump tag Dec 6, 2025
Copilot AI requested a review from BnJam December 6, 2025 00:57
@BnJam BnJam added the bump:patch v0.1.0 --> v0.1.1 label Dec 6, 2025
@BnJam BnJam marked this pull request as ready for review December 6, 2025 01:00
@BnJam BnJam merged commit 53f55e2 into main Dec 6, 2025
5 of 10 checks passed
@BnJam BnJam deleted the copilot/fix-pypi-publish-version branch December 6, 2025 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bump:patch v0.1.0 --> v0.1.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GitHub Release is correct version but PyPi publish is not synced to latest version

2 participants