Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: track plugin version and sync it from release-plz#70

Merged
PeterKneale merged 4 commits into
mainfrom
chore/sync-plugin-version
Jun 27, 2026
Merged

chore: track plugin version and sync it from release-plz#70
PeterKneale merged 4 commits into
mainfrom
chore/sync-plugin-version

Conversation

@PeterKneale

Copy link
Copy Markdown
Owner

What

  • Add a version field to .claude-plugin/plugin.json (set to the current published 5.0.0).
  • Add a step to the release-pr job in release-plz.yml that mirrors the version release-plz bumps in Cargo.toml into plugin.json on the same release PR branch.

Why

The marketplace plugin (source: ".") tracks main, so consumers always get the latest skill, but the plugin advertised no version. Now it advertises one that moves in lockstep with each crate release, with no manual edit required.

How the sync works

release-plz opens/updates a chore: release vX.Y.Z PR that bumps Cargo.toml + CHANGELOG on a release branch. The new step reads the bumped version from Cargo.toml on that branch and, if plugin.json is out of date, commits the updated plugin.json to the same branch (via ${{ steps.release-pr.outputs.pr }}head_branch). It's idempotent — it self-heals each run because release-plz force-pushes the branch from main, and the step re-applies the version on the next run.

Notes

  • Docker latest tag is already published by docker.yml (verified latest and 5.0.0 both exist in GHCR), so no change needed there.
  • plugin.json was normalized to jq formatting so future release PRs show a one-line version diff.

🤖 Generated with Claude Code

Add a `version` field to .claude-plugin/plugin.json (currently 5.0.0) so the
marketplace advertises a version that moves with each release, and add a step
to the release-plz `release-pr` job that mirrors the bumped Cargo.toml version
into plugin.json on the same release PR branch. The Claude Code plugin
therefore stays in lockstep with the published crate without a manual edit.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings June 27, 2026 06:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds explicit versioning to the Claude Code plugin manifest and automates keeping that version in sync with the crate version that release-plz bumps, so the marketplace plugin advertises a version that tracks releases without manual edits.

Changes:

  • Added a version field to .claude-plugin/plugin.json (set to 5.0.0) and normalized formatting.
  • Updated .github/workflows/release-plz.yml to capture the release-plz PR output and add a post-step that reads version from Cargo.toml and updates plugin.json on the same release PR branch.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/release-plz.yml Adds a release PR post-step to mirror the bumped crate version into the plugin manifest on the release branch.
.claude-plugin/plugin.json Adds a version field and formats the JSON for stable diffs on future automated bumps.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

PeterKnealeCMRI and others added 2 commits June 27, 2026 16:42
Make the `docker pull` example use the explicit `:latest` tag and note that
each release is also published under its version tag for pinning.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Replace the stale pinned `:3.1.1` with `:latest` in the Nextflow process
example container.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings June 27, 2026 06:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread README.md
label 'process_medium'
conda "${moduleDir}/environment.yml"
container "ghcr.io/peterkneale/bioassert:3.1.1"
container "ghcr.io/peterkneale/bioassert:latest"
Keep the example on :latest but add a comment recommending a pinned version
tag for reproducible pipeline runs.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@PeterKneale PeterKneale merged commit 847226a into main Jun 27, 2026
3 checks passed
@PeterKneale PeterKneale deleted the chore/sync-plugin-version branch June 27, 2026 06:49
@github-actions github-actions Bot mentioned this pull request Jun 27, 2026
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.

3 participants