Skip to content

@W-24861158: ci(version): set plugin.json versions from the PR's Version Bump box - #43

Merged
patrickg2014 merged 2 commits into
mainfrom
pgreen/W-24861158-stamp-build-version
Nov 19, 2026
Merged

patrickg2014 merged 2 commits into
mainfrom
pgreen/W-24861158-stamp-build-version

Conversation

@patrickg2014

Copy link
Copy Markdown
Collaborator

Summary

New rule: a PR that changes anything outside docs/ and .github/ must tick
None, Patch, Minor, or Major under Version Bump. CI sets version in every
plugin.json under platforms/ from it and pushes that commit to the PR.
Nobody edits version by hand anymore.

Why: Claude Code and other git-marketplace installs update a plugin only when
its version changes. The version is bumped by hand today, so it gets missed.

This follows tableau-mcp's auto-version-bump.yml, with two differences:

  • No default. tableau-mcp falls back to Patch; here the check fails until a box
    is ticked. None is for changes users don't get, such as a refactor.
  • Three manifests, not one package.json. jq rewrites all three on every
    run, and the tag step fails if they disagree.

On merge, CI tags vX.Y.Z (except for None).

Also adds build.yml, which builds every platform on each PR. After merge, an
admin should make build a required check with "Require branches to be up to
date". That makes a PR re-bump after another one merges, so two PRs can't ship
the same version. tableau-mcp's ruleset works the same way.

.codex-plugin/plugin.json is reformatted once to jq's layout (same
content), so later bump commits change one line per file.

Version Bump

A PR that changes anything outside docs/ and .github/ must tick one box;
the check fails until you do. CI sets the version from it:

  • None: nothing users get changes, such as build tooling, tests, or a refactor
  • Patch: fixes only, nothing new for users
  • Minor: something new, such as a skill; existing setups keep working
  • Major: users must change something, such as reconnecting, or a skill is removed or renamed

How Has This Been Tested?

Ran the version workflow's run: blocks against a throwaway repo with a bare
origin, 14 cases. The bump job: no box fails; Patch, Minor, Major, and
switching back to None each set the right version in all three files; a hand
edit to one file is overwritten; each bot commit changes only the version
lines. The tag job: tags on merge, skips a rerun, and errors on a reused
version, no box, or manifests that disagree.

Ran build.yml's three build commands locally; all pass.

This PR is the first run of both workflows on GitHub.

Known gaps:

…ion Bump box

A PR that changes anything outside docs/ and .github/ must tick None, Patch,
Minor, or Major in its description. CI sets version in every plugin.json
under platforms/ from it and tags vX.Y.Z on merge.

Also adds a build check on every PR, so it can be the required check that
turns on "Require branches to be up to date".

@bcantoni bcantoni 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.

Approved, but either as part of this or afterwards, we should probably update those actions, for example:
actions/checkout@v7
actions/setup-python@v7

@patrickg2014
patrickg2014 merged commit b421d50 into main Nov 19, 2026
5 checks passed
@patrickg2014
patrickg2014 deleted the pgreen/W-24861158-stamp-build-version branch November 19, 2026 17:31
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