Skip to content

docs(ci): version badges, Publish status, and aggregate downloads badge - #30

Merged
shashikanth-gs merged 2 commits into
mainfrom
claude/canary-release-pipeline-vhraqt
Aug 12, 2026
Merged

shashikanth-gs merged 2 commits into
mainfrom
claude/canary-release-pipeline-vhraqt

Conversation

@shashikanth-gs

@shashikanth-gs shashikanth-gs commented Aug 12, 2026

Copy link
Copy Markdown
Owner

Summary

Follow-up to #29. Adds three things to make the release pipeline's state visible at a glance from the README.

Change

  1. Stable + Canary version columns in the Packages table, for every package. Live shields.io badges pulled straight from the npm registry (img.shields.io/npm/v/<pkg> and .../<pkg>/canary) — no manual updates needed.
  2. Publish workflow-status badge in the header, next to the existing CI badge.
  3. Aggregate "Total Downloads" badge, also in the header. This one needed a small pipeline of its own: downloads-badge.yml runs daily (+ manual dispatch) and computes all-time npm download totals across all 6 packages — chunking date ranges to stay under npm's ~18-month-per-request cap — then commits the result as shields.io endpoint-badge JSON to a dedicated badges branch (kept separate from main on purpose, so generated data doesn't pollute main's history or need to bypass branch protection). The README badge points at the raw file on that branch.

Manual follow-up

The badges branch doesn't exist yet, so the Total Downloads badge will show "invalid" until the workflow runs once. Either wait for the next scheduled run (daily, 06:00 UTC) or trigger it manually from the Actions tab (Downloads Badge → Run workflow) right after this merges.

Test plan

  • Preview rendered Markdown on GitHub — table and header badges render cleanly
  • After merge, manually dispatch downloads-badge.yml once and confirm the badges branch is created with .github/badges/downloads.json + downloads-detail.json
  • Confirm the Total Downloads badge renders a real number after that first run

🤖 Generated with Claude Code

https://claude.ai/code/session_01ErQ6uTpLp3HE5yVTyq6fwv

claude added 2 commits August 12, 2026 08:28
Extends the Packages table with a Canary column alongside the existing
Stable one, so every package's current canary version is visible at a
glance and stays live (shields.io npm dist-tag badges pull straight
from the registry, no manual updates needed). Also adds a Publish
workflow-status badge to the header row next to the existing CI badge.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ErQ6uTpLp3HE5yVTyq6fwv
Adds a daily (+ manually dispatchable) workflow that computes all-time
npm download totals across all 6 published packages, chunking date
ranges to stay under npm's ~18-month-per-request cap, and commits the
result as shields.io endpoint-badge JSON to a dedicated `badges` branch
rather than `main` — keeps generated data out of main's history and off
to the side of branch protection.

Adds a "Total Downloads" badge to the README header pointing at that
endpoint. First data point requires either the next scheduled run or a
manual "Run workflow" dispatch after this merges.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ErQ6uTpLp3HE5yVTyq6fwv
@shashikanth-gs shashikanth-gs changed the title docs: add canary version badges and Publish workflow status to README docs(ci): version badges, Publish status, and aggregate downloads badge Aug 12, 2026
@shashikanth-gs
shashikanth-gs merged commit 24e8c8f into main Aug 12, 2026
3 checks passed
shashikanth-gs pushed a commit that referenced this pull request Aug 12, 2026
The downloads-badge.yml workflow added in #30 never registered with
GitHub Actions — missing from both the workflows list and the Actions
UI, unlike every other workflow file in this repo. The one structural
difference: it embedded a fairly complex multi-line Node script
(backticks, nested template literals, comments) directly inside a YAML
block scalar, unlike ci.yml/publish.yml/version.yml, which all use
simple single-line `run:` commands.

Move the script to scripts/downloads-badge.mjs and reduce the workflow
step to `run: node scripts/downloads-badge.mjs`, removing that whole
class of risk regardless of whether it was the actual root cause.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ErQ6uTpLp3HE5yVTyq6fwv
shashikanth-gs added a commit that referenced this pull request Aug 12, 2026
The downloads-badge.yml workflow added in #30 never registered with
GitHub Actions — missing from both the workflows list and the Actions
UI, unlike every other workflow file in this repo. The one structural
difference: it embedded a fairly complex multi-line Node script
(backticks, nested template literals, comments) directly inside a YAML
block scalar, unlike ci.yml/publish.yml/version.yml, which all use
simple single-line `run:` commands.

Move the script to scripts/downloads-badge.mjs and reduce the workflow
step to `run: node scripts/downloads-badge.mjs`, removing that whole
class of risk regardless of whether it was the actual root cause.


Claude-Session: https://claude.ai/code/session_01ErQ6uTpLp3HE5yVTyq6fwv

Co-authored-by: Claude <noreply@anthropic.com>
col pushed a commit to col/a2a-wrapper that referenced this pull request Aug 19, 2026
…ge (shashikanth-gs#30)

* docs: add canary version badges and Publish workflow status to README

Extends the Packages table with a Canary column alongside the existing
Stable one, so every package's current canary version is visible at a
glance and stays live (shields.io npm dist-tag badges pull straight
from the registry, no manual updates needed). Also adds a Publish
workflow-status badge to the header row next to the existing CI badge.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ErQ6uTpLp3HE5yVTyq6fwv

* feat(ci): add scheduled workflow for aggregate downloads badge

Adds a daily (+ manually dispatchable) workflow that computes all-time
npm download totals across all 6 published packages, chunking date
ranges to stay under npm's ~18-month-per-request cap, and commits the
result as shields.io endpoint-badge JSON to a dedicated `badges` branch
rather than `main` — keeps generated data out of main's history and off
to the side of branch protection.

Adds a "Total Downloads" badge to the README header pointing at that
endpoint. First data point requires either the next scheduled run or a
manual "Run workflow" dispatch after this merges.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ErQ6uTpLp3HE5yVTyq6fwv

---------

Co-authored-by: Claude <noreply@anthropic.com>
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