Skip to content

ci: release with changie and changie-release-action v2 - #26

Merged
mvantellingen merged 1 commit into
masterfrom
ci/changie-release-v2
Oct 27, 2026
Merged

mvantellingen merged 1 commit into
masterfrom
ci/changie-release-v2

Conversation

@mvantellingen

Copy link
Copy Markdown
Member

Switch releases to changie and labd/changie-release-action v2.0.0.

  • .changie.yaml (kinds incl. Dependency/Security → patch) with replacements for every hardcoded version: pyproject.toml, src/django_session_timeout/__init__.py, docs/conf.py. .bumpversion.cfg is removed.
  • release job in the test workflow (push to the default branch only, after all checks): maintains a changie-release/<branch> release PR; once merged it tags the version and creates the GitHub release (create-release: true) with the release app token. uv lock runs as version-command.
  • Because the release is created with the app token (non-draft), it triggers the existing python-release.yml (release: created), which still publishes to PyPI with trusted publishing. Nothing changes on pypi.org.
  • dependabot-changie.yaml adds a Dependency entry to Dependabot PRs.
  • CHANGELOG.md starts at the current release (0.1.0, tag 0.1.0, on PyPI); older history stays in CHANGES. Tags keep the existing X.Y.Z format (changie keeps the prefix-less format).
  • README: "Releasing" section.
  • Adds a changie Removed entry for the unreleased Python 3.11+ / Django 5.2+ change, so after merge a release PR for 1.0.0 opens. Change the entry kind if you prefer another version.
    Verified locally: changie batch auto --dry-run → 1.0.0; a simulated bump updates all version strings, uv lock --check passes after uv lock; ruff and tests pass.

Replace bumpversion with changie. A release job in the test workflow maintains a release PR and, once merged, tags the version and creates the GitHub release with the release app token. That triggers the existing python-release.yml, which keeps publishing to PyPI with trusted publishing.

Older history stays in CHANGES; CHANGELOG.md starts at 0.1.0.
@mvantellingen
mvantellingen merged commit 1e6ee7a into master Oct 27, 2026
11 checks passed
@mvantellingen
mvantellingen deleted the ci/changie-release-v2 branch October 27, 2026 05:12
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.

1 participant