Skip to content

feat(marketplace): pin the plugin to release tags, release from release/stable branches, add plugin CI - #150

Merged
kazo0 merged 7 commits into
mainfrom
ci/plugin-validation-release
Sep 25, 2026
Merged

kazo0 merged 7 commits into
mainfrom
ci/plugin-validation-release

Conversation

@kazo0

@kazo0 kazo0 commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): #

PR Type

  • Bugfix
  • Feature
  • Build or CI related changes
  • Documentation content changes
  • Project automation

What is the current behavior?

  • All three marketplaces point at ./plugins/uno-platform-studio, so agents install whatever is on main. The version number is the only thing that tells an agent an update exists.
  • The FlexPanel skill (feat: add uno-toolkit-flexpanel agent skill #146) was merged without a version bump (still 1.0.0). Existing Claude Code users therefore never received it.
  • Nothing checks that the plugin or its skills are valid. claude plugin validate --strict fails on main today: metadata.homepage is an unknown field in .claude-plugin/marketplace.json.
  • No agent reads plugins/uno-platform-studio/.github/plugin.json. Copilot CLI and VS Code look for .github/plugin/plugin.json, then fall back to .claude-plugin/plugin.json.

What is the new behavior?

Pinned releases. main is staging. Each marketplace points the plugin at a release tag through source.ref:

Marketplace Agents Source
.claude-plugin/marketplace.json Claude Code git-subdir + url + path + ref
.github/plugin/marketplace.json Copilot CLI, VS Code github + repo + path + ref
.agents/plugins/marketplace.json Codex git-subdir + url + path + ref

The git-subdir sources use the full HTTPS URL, so anyone can install without credentials. With the owner/repo shorthand, Claude Code clones over SSH, which fails for users without a GitHub SSH key. User-facing install commands (/plugin marketplace add unoplatform/studio) don't change.

Releases from release/stable/<major>.<minor> branches, like the other Uno Platform repos:

  1. Comment /unobot prepare-release --commit-message-pattern "ci: Set version to '{0}'" on a merged PR, the same way toolkit does. The bot runs nbgv prepare-release, which reads the new version.json. It pushes release/stable/1.1 and opens a PR bumping main to 1.2-dev.{height}. Patch releases come from fixes merged into an existing release branch, for example with /unobot backport release/stable/1.1.
  2. release.yml runs the validation workflow, then waits for approval on the plugin-release environment.
  3. Once approved, it releases the next <major>.<minor>.<patch>, starting at .0:
    • stamps the version into every manifest on the release branch (.github/scripts/Set-PluginVersion.ps1),
    • creates a plain (non-annotated) tag and a GitHub Release,
    • opens a PR moving the marketplaces on main to the new tag. main is protected, so this can't be a direct push. A patch release on an older line never moves main backwards.
  4. Merging that PR is when agents start installing the release.

Merging to main no longer releases anything.

CI (validate-plugin.yml). It runs on PRs to main and release/stable/**, on pushes to main, and as the first job of every release. It runs claude plugin validate --strict on the marketplace and the plugin. It also runs .github/scripts/Test-Plugin.ps1 for checks the validator doesn't cover:

  • skills/ still mirrors plugins/uno-platform-studio/skills/.
  • One version across every manifest and every pinned source.ref.
  • Each source points at this repo, at the right path, over HTTPS.
  • Each skill's name matches its folder.
  • description + when_to_use stay within the 1,536-character skill listing budget.
  • Links to other skills and to references/ files resolve.

PR Checklist

  • Documentation has been added/updated
  • Associated with an issue (GitHub or internal)

Additional Information

Before merging

  1. ✅ The plugin-release environment exists. Its required reviewers are @carldebilly, @ebariche, @jeromelaban, @agneszitte and @kazo0, and it only deploys from release/stable/* branches.

  2. ✅ Tag 1.0.0 has been pushed on 609cb68. I installed from this branch's marketplace into clean configs: Claude Code and Codex both got all 62 skills at 1.0.0.

  3. ⏳ Register the unobot webhook, which is still needed. Studio has no webhook, so /unobot comments are ignored. Match uno.toolkit.ui's settings:

    • URL: https://unoopsfunctions.azurewebsites.net/api/github-notifications
    • Content type: JSON
    • Events: Issues, Issue comments and Pull requests
    • Secret: "Azure Function Devops Tools" in Bitwarden

    unodevops already has admin on this repo.

After merging

Comment /unobot prepare-release --commit-message-pattern "ci: Set version to '{0}'" on this PR, approve the Release run, and merge the bot's version-bump PR. That releases 1.1.0, which ships FlexPanel to existing users. Then merge the PR that points main at it.

Testing

  • I ran nbgv prepare-release locally with the bot's nbgv 3.7.77-alpha and this version.json. It created release/stable/1.1 at 1.1, bumped main to 1.2-dev.{height}, and both commits pass commitsar. Test-Plugin.ps1 passes on the new release branch.
  • A scratch marketplace, pinned to main because no tag exists yet, installed all 62 skills in Claude Code 2.1.282, Codex 0.154.0 and Copilot CLI 1.0.3. VS Code is not tested (it can only install through its UI). Its source code accepts the same github + path + ref shape.
  • On a copy with deliberate faults, Test-Plugin.ps1 reported every one: a wrong name, an oversized description, a dangling skill link, a missing reference, a version mismatch, mirror drift, an SSH-shorthand URL and a bad path.
  • Set-PluginVersion.ps1 changes exactly the 9 version and ref fields, and Test-Plugin.ps1 passes afterwards.
  • I tested the version calculation and the "don't move main backwards" guard locally against sample tags. Cases covered:
    • The first release on a line is .0.
    • 1.1.10 is followed by 1.1.11.
    • Pre-release tags are ignored.
    • Badly named branches are rejected.
    • main is not moved back from 1.2.0 to 1.1.3.
  • release.yml itself hasn't run yet. Its first real run is release/stable/1.1.

Not yet verified

  • Whether VS Code and Copilot CLI detect updates when source.ref moves to a new tag.
  • The minimum Claude Code version that supports git-subdir.
  • Whether existing users who installed from the relative path switch over cleanly when their marketplace refreshes.
  • CI doesn't run on the pointer PRs the workflow opens, because PRs created with GITHUB_TOKEN don't trigger workflows. main has no required checks, so they only need the code-owner review.

🤖 Generated with Claude Code

https://claude.ai/code/session_01P366MHuPhV6euFSWLnwkea

kazo0 and others added 4 commits September 25, 2026 13:52
Copilot CLI and VS Code look for .github/plugin/plugin.json, not .github/plugin.json, so both already fall back to .claude-plugin/plugin.json.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P366MHuPhV6euFSWLnwkea
main becomes staging: every marketplace points the plugin at a release tag through source.ref, and merging a version bump tags the release and publishes notes.

git-subdir sources use the full HTTPS URL because Claude Code expands an owner/repo shorthand to SSH, which fails for users without a GitHub key. Verified installs from each shape with Claude Code 2.1.282, Codex 0.154.0 and Copilot CLI 1.0.3.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P366MHuPhV6euFSWLnwkea
Runs claude plugin validate --strict plus repo checks it doesn't cover: skills/ mirror drift, one version across every manifest and pinned source.ref, source URLs agents can clone anonymously, skill name matching its folder, the 1,536-char skill listing budget, and links to other skills and references.

Drops metadata.homepage from the Claude marketplace, which Claude Code ignores and --strict rejects.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P366MHuPhV6euFSWLnwkea
@kazo0 kazo0 mentioned this pull request Sep 25, 2026
1 of 3 tasks
kazo0 and others added 2 commits September 25, 2026 14:10
Matches the other Uno Platform repos: a push to release/stable/<major>.<minor> validates the branch, waits for approval on the plugin-release environment, then releases the next <major>.<minor>.<patch>. The workflow stamps the version into every manifest on the release branch, tags and publishes it, and opens a PR moving the marketplaces on main (which is protected) to the new tag. Merging to main no longer releases.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P366MHuPhV6euFSWLnwkea
1.1.0 is now cut from release/stable/1.1. Until then the marketplaces point at a 1.0.0 tag of what is shipped today.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P366MHuPhV6euFSWLnwkea
@kazo0 kazo0 changed the title feat(marketplace): pin the plugin to release tags and add plugin CI feat(marketplace): pin the plugin to release tags, release from release/stable branches, add plugin CI Sep 25, 2026
The unobot prepare-release command runs nbgv prepare-release, which reads version.json to name the release branch (release/stable/{version}) and bump main to the next -dev version. Nothing else uses NBGV: release versions still come from the release workflow.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P366MHuPhV6euFSWLnwkea
@kazo0
kazo0 merged commit 8178fbc into main Sep 25, 2026
3 of 4 checks passed
@kazo0
kazo0 deleted the ci/plugin-validation-release branch September 25, 2026 19:26
@welcome

welcome Bot commented Sep 25, 2026

Copy link
Copy Markdown

Congrats on your first pull-request! We ❤ the people who are involved in this project, and we’d love to pay it forward by sending you some swag. If you have any feedback (or ideas how to improve Uno as a open-source project) please open a feedback issue.
giphy
Merci beaucoup 👋

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