Skip to content

ci: release automation — auto-bump version and create GitHub Release on merge to main#72

Merged
Siddhant-K-code merged 1 commit into
mainfrom
ci/release-automation
May 17, 2026
Merged

ci: release automation — auto-bump version and create GitHub Release on merge to main#72
Siddhant-K-code merged 1 commit into
mainfrom
ci/release-automation

Conversation

@Siddhant-K-code
Copy link
Copy Markdown
Owner

What

Adds .github/workflows/release.yml — a workflow that runs on every push to main and:

  1. Reads the current version from src/agent_trace/__init__.py
  2. Computes the next patch version (e.g. 0.32.00.32.1)
  3. Bumps the version in source and commits it back to main
  4. Builds a changelog from commits since the last tag
  5. Creates a GitHub Release tagged vX.Y.Z with that changelog as the body

The existing publish.yml (PyPI) and publish-vscode.yml (VS Code Marketplace) both trigger on release: published, so they continue to work without any changes.

Why

Every subsequent PR in this batch (drift, dashboard --trend, optimize, Langfuse export) needs a release to ship. This workflow means merging a PR to main is sufficient — no manual tagging or release creation required.

Guard against infinite loop

The workflow skips itself when the triggering commit message starts with chore: bump version to, which is the exact message the workflow uses for its own commit.

Checklist

  • Workflow file added
  • Skips on version bump commits (no infinite loop)
  • Compatible with existing PyPI and VS Code publish workflows
  • Uses GITHUB_TOKEN (no new secrets required)

On every push to main (excluding version bump commits), bumps the patch
version in __init__.py, commits it, and creates a GitHub Release with a
changelog built from commits since the last tag.

The existing publish.yml and publish-vscode.yml workflows trigger on
release published, so PyPI and VS Code Marketplace publishing continue
to work without changes.

Co-authored-by: Ona <no-reply@ona.com>
@Siddhant-K-code Siddhant-K-code merged commit 4060f22 into main May 17, 2026
4 checks passed
@Siddhant-K-code Siddhant-K-code deleted the ci/release-automation branch May 17, 2026 12:15
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