Skip to content

Pin marketplace installs to the release tag - #8

Merged
Sentry01 merged 2 commits into
mainfrom
sentry01-release-versioning
Oct 27, 2026
Merged

Sentry01 merged 2 commits into
mainfrom
sentry01-release-versioning

Conversation

@Sentry01

Copy link
Copy Markdown
Owner

Marketplace users currently get whatever is on main when they run copilot plugin update, because the marketplace entry uses "source": "./". That ships unreleased changes and makes the release workflow cosmetic. This PR pins installs to the vX.Y.Z release tag, so users only receive a new version once it has been published.

Approach

  • Pinned source. The plugin entry in .github/plugin/marketplace.json now uses {"source": "github", "repo": "Sentry01/AgentCouncil", "ref": "v2.0.0"}. The v2.0.0 tag already exists, so merging this changes nothing for current users.
  • Guard rail. scripts/validate.mjs fails unless source.ref equals v + the plugin.json version, so a bump cannot leave installs pointing at the old tag.
  • One-command bump. New scripts/bump-version.mjs X.Y.Z (or patch / minor / major) updates plugin.json, both version fields and the ref in marketplace.json, and moves the Unreleased changelog notes under a dated heading. It refuses an empty Unreleased section.
  • CI. The Validate workflow also runs release-notes.mjs, so a missing or empty changelog section is caught in the PR. A failed release now blocks the update, so this needs to fail early.
  • Docs. README and CONTRIBUTING describe the release-pinned flow.

The release flow is unchanged otherwise: bump in a PR, merge, and the existing Release workflow tags the merge commit and publishes the release.

Things to know

  • Merge-to-tag gap. Between merging a bump and the workflow creating the tag, copilot plugin update fails with "Remote branch vX.Y.Z not found" and keeps the installed version. Fresh installs fail in that window too. I verified this with the CLI.
  • Prereleases. A version like 2.1.0-rc.1 merged to main still reaches every marketplace user. The docs say to test those locally with copilot --plugin-dir . first.
  • Direct installs. copilot plugin install Sentry01/AgentCouncil still tracks main. The README now says so.
  • Published tags. Moving or deleting a published tag affects users installed at that version.

Validation

  • node scripts/validate.mjs and node scripts/release-notes.mjs pass.
  • Negative checks: a mismatched ref and the old string source both fail validation.
  • Bump script, tested in a scratch copy: minor produced a valid 2.1.0. An empty Unreleased section, the same version, a bad version and keyword bumps from a prerelease are all rejected.
  • Real Copilot CLI (1.0.99) against a local git-served copy of this marketplace.json:
    • The install matched the v2.0.0 tag tree exactly, not main.
    • Changing the ref and updating fetched the new ref's content.
    • A missing tag left the existing install intact.

The marketplace entry now points at {"source": "github", "ref": "vX.Y.Z"}
instead of "./", so `copilot plugin update` only delivers published
releases, never unreleased work on main.

- validate.mjs requires the ref to equal v<plugin.json version>
- scripts/bump-version.mjs sets every version field and dates the changelog
- Validate CI also checks that release notes build, since a failed release
  now blocks the update
- README and CONTRIBUTING describe the release-pinned update flow

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

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.

🟡 Changes recommended

The version bump script accepts versions that can break publishing and modifies release files before validating marketplace data, leaving failed bumps partially applied.

2 open issues
What changed in this PR

Pins AgentCouncil marketplace installs to release tags instead of main, separating released versions from ongoing development.

Changes:

  • Pins the marketplace source to v2.0.0 and validates that its ref matches the plugin version.
  • Adds a version-bump script and release-notes validation in CI.
  • Documents release-pinned updates, direct-install behavior, and release precautions.
File Description
scripts/​validate.mjs Checks the marketplace source and release-tag alignment.
scripts/​bump-version.mjs Updates manifest versions, the pinned ref, and changelog headings.
README.md Explains marketplace releases versus direct installs tracking main.
CONTRIBUTING.md Documents the bump command and release-pinned workflow.
CHANGELOG.md Records the release tooling and marketplace changes.
.github/​workflows/​validate.yml Adds a release-notes check to CI.
.github/​workflows/​release.yml Adds comments explaining release-tag pinning; behavior is unchanged.
.github/​plugin/​marketplace.json Replaces the relative source with a GitHub source pinned to v2.0.0.

Review effort: Balanced

Comment thread scripts/bump-version.mjs Resolved
Comment thread scripts/bump-version.mjs Resolved
- bump-version.mjs and validate.mjs use strict SemVer identifiers and
  reject a trailing ".lock", so v<version> is always a valid Git tag
  (2.1.0-rc..1, 2.1.0-rc. and 2.1.0-rc.lock were accepted before)
- bump-version.mjs reads and checks marketplace.json and prepares every
  change before writing, so a rejected bump leaves all files untouched

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@Sentry01
Sentry01 merged commit 1c4ce3d into main Oct 27, 2026
1 check passed
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