Skip to content

fix(release): revert packages to 0.1.0 and fix CI to stay in 0.x#1

Merged
marcfargas merged 2 commits into
mainfrom
copilot/fix-release-system-to-stay-in-0x
Mar 25, 2026
Merged

fix(release): revert packages to 0.1.0 and fix CI to stay in 0.x#1
marcfargas merged 2 commits into
mainfrom
copilot/fix-release-system-to-stay-in-0x

Conversation

Copilot AI commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

v1.0.0 was yanked from PyPI but CI kept re-releasing in 1.x because python-semantic-release derives the current version from git tags — the v1.0.0 tag still existed, so every subsequent commit on main would produce v1.0.1, v1.1.0, etc.

Changes

  • All three pyproject.toml files: version = "1.0.0""0.1.0"
  • CHANGELOG.md: rename v1.0.0 entry to v0.1.0
  • release.yml: add a one-time idempotent tag migration step that runs before semantic-release version:
- name: Replace yanked v1.0.0 tag with v0.1.0
  run: |
    if git ls-remote --tags origin refs/tags/v1.0.0 | grep -q .; then
      git fetch origin refs/tags/v1.0.0:refs/tags/v1.0.0
      TAGGED_COMMIT=$(git rev-parse v1.0.0^{commit})
      git push origin :refs/tags/v1.0.0
      git tag v0.1.0 "$TAGGED_COMMIT"
      git push origin v0.1.0
    fi

On first run: deletes v1.0.0, creates v0.1.0 at the same commit — semantic-release then sees v0.1.0 as current and continues from there. On subsequent runs: v1.0.0 is absent so the block is a no-op.

The existing major_on_zero = false in the semantic-release config already guards against any future accidental jump to 1.x.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/graphql
    • Triggering command: /usr/bin/gh gh auth status (http block)

If you need me to access, download, or install something from one of these locations, you can either:


📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Copilot AI changed the title [WIP] Fix release system to prevent v1.0.0 publication fix(release): revert packages to 0.1.0 and fix CI to stay in 0.x Mar 25, 2026
Copilot AI requested a review from marcfargas March 25, 2026 21:03
@marcfargas marcfargas marked this pull request as ready for review March 25, 2026 21:48
@marcfargas marcfargas merged commit 3354e65 into main Mar 25, 2026
5 checks passed
@marcfargas marcfargas deleted the copilot/fix-release-system-to-stay-in-0x branch March 25, 2026 21:48
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