Commit 3e212fd
ci(registry): cut GitHub Releases on tag push, idempotent guard for re-runs (#3)
Glama tracks the GitHub Releases API (not git tags, not the MCP
Registry). Without a Release per version, Glama's 'Latest release'
cache, tool-count cache, and maintenance grade all stay stale on
their first-ever-scrape value. Sprint 1 made tag pushes cascade to
MCP Registry but didn't cut Releases — so Glama is still on v1.0.0.
Two changes:
1. New 'Cut GitHub Release if missing' step at the end of the job.
Idempotent — skips when 'gh release view' shows the tag already
has a Release. Notes pulled from CHANGELOG.md via awk between
'## VERSION' and the next '## ' heading; falls back to a pointer
line when no entry exists (v1.0.4 / v1.0.5 in current history).
The Release is marked --latest=true if its version matches MCP
Registry's current isLatest; otherwise --latest=false (historical
backfill).
2. New 'Check if version is already on MCP Registry' guard that
surrounds the existing publish/auth/server.json-commit steps with
'if: registry_check.outputs.already_published != true'. Without
this, re-running the workflow on an already-published tag (which
will happen during the Phase 2 historical backfill when 'gh
release create' fires both push:tags and release:published) would
error at the mcp-publisher publish step.
Walkthrough — next v2.1.2 release:
npm version patch # bumps package.json, creates v2.1.2 tag
npm publish # canonical event, npm now has 2.1.2
git push --follow-tags # tag push fires publish-registry.yml
# → publishes 2.1.2 to MCP Registry
# → cuts GitHub Release v2.1.2 with notes
# → Glama picks up on its next scrape
Audit:
docs/audit/distribution-cascade-2026-05-16.md (2026-05-17 amendment)
in the main freighttools repo documents the diagnosis and walkthrough.
Co-authored-by: SoapyRED <soapyred@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 07b110c commit 3e212fd
1 file changed
Lines changed: 82 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
13 | 20 | | |
14 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
15 | 24 | | |
16 | 25 | | |
17 | 26 | | |
| |||
94 | 103 | | |
95 | 104 | | |
96 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
97 | 126 | | |
| 127 | + | |
98 | 128 | | |
99 | 129 | | |
100 | 130 | | |
| 131 | + | |
101 | 132 | | |
102 | 133 | | |
103 | 134 | | |
| 135 | + | |
104 | 136 | | |
105 | 137 | | |
106 | 138 | | |
| |||
123 | 155 | | |
124 | 156 | | |
125 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
0 commit comments