Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"publish": false
},
"hooks": {
"after:bump": "npm run build"
"before:git:release": "npm run build"
},
"plugins": {
"@release-it/bumper": {
Expand Down
10 changes: 6 additions & 4 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@ release is what triggers the actual plugin distribution (below).
minor, `fix` → patch, a `BREAKING CHANGE` footer → major).
2. Bump both the root `package.json` and
`shared/glean/mcp/package.json` to the same version. Regenerate
`CHANGELOG.md`. Its `after:bump` hook then runs `npm run build`, which
syncs that changelog into `shared/glean` and `shared/glean-dev-docs`, then
rebuilds the generated plugin output — all of which is included in the
release commit.
`CHANGELOG.md`. Its `before:git:release` hook then runs `npm run build`,
after the changelog plugin has written the new entry and before release-it
commits and tags. The build syncs that changelog into `shared/glean` and
`shared/glean-dev-docs`, rebuilds the generated plugin output, and checks
that every shipped changelog matches the root — all of which is included
in the release commit.
3. Commit as `chore: release v${version}`, tag `v${version}`, and push both
to `main`.
4. Create a GitHub Release from that tag.
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
},
"type": "module",
"scripts": {
"build": "pluginpack build",
"build": "pluginpack build && npm run check:plugin-changelogs",
"build:bundle": "node shared/glean/mcp/build.mjs",
"clean": "pluginpack clean",
"check:no-shell": "node scripts/check-no-shell-scripts.mjs",
"check:plugin-changelogs": "node scripts/check-plugin-changelogs.mjs",
"check:release-version": "node scripts/check-release-version.mjs",
"prune": "pluginpack prune",
"typecheck:bundle": "tsc --noEmit -p shared/glean/mcp/tsconfig.json",
Expand Down
34 changes: 34 additions & 0 deletions scripts/check-plugin-changelogs.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/usr/bin/env node
import { readFileSync } from "node:fs";
import { fileURLToPath } from "node:url";
import { dirname, join } from "node:path";

const root = join(dirname(fileURLToPath(import.meta.url)), "..");
const canonicalPath = join(root, "CHANGELOG.md");
const canonical = readFileSync(canonicalPath, "utf8");

const paths = [
"shared/glean/CHANGELOG.md",
"shared/glean-dev-docs/CHANGELOG.md",
"dist/claude/plugins/glean/CHANGELOG.md",
"dist/claude/plugins/glean-dev-docs/CHANGELOG.md",
"dist/cursor/glean/CHANGELOG.md",
"dist/cursor/glean-dev-docs/CHANGELOG.md",
"dist/codex/plugins/glean/CHANGELOG.md",
"dist/codex/plugins/glean-dev-docs/CHANGELOG.md",
];

const mismatches = paths.filter((relativePath) => {
const actual = readFileSync(join(root, relativePath), "utf8");
return actual !== canonical;
});

if (mismatches.length > 0) {
throw new Error(
`Plugin changelogs differ from CHANGELOG.md:\n${mismatches
.map((relativePath) => `- ${relativePath}`)
.join("\n")}`,
);
}

console.log(`All ${paths.length} plugin changelogs match CHANGELOG.md.`);
6 changes: 6 additions & 0 deletions shared/glean-dev-docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [3.4.1](https://github.com/gleanwork/agent-plugins/compare/v3.4.0...v3.4.1) (2026-09-02)

### Documentation

* broaden Claude plugin surface guidance ([11d566c](https://github.com/gleanwork/agent-plugins/commit/11d566cf05dba9051c4a7675fe1035ea8ba2cb9f))

## [3.4.0](https://github.com/gleanwork/agent-plugins/compare/v3.3.0...v3.4.0) (2026-08-20)

### Features
Expand Down
6 changes: 6 additions & 0 deletions shared/glean/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## [3.4.1](https://github.com/gleanwork/agent-plugins/compare/v3.4.0...v3.4.1) (2026-09-02)

### Documentation

* broaden Claude plugin surface guidance ([11d566c](https://github.com/gleanwork/agent-plugins/commit/11d566cf05dba9051c4a7675fe1035ea8ba2cb9f))

## [3.4.0](https://github.com/gleanwork/agent-plugins/compare/v3.3.0...v3.4.0) (2026-08-20)

### Features
Expand Down