Skip to content

docs: add changelog page and automate GitHub Releases - #17

Merged
markhazleton merged 1 commit into
mainfrom
docs/changelog-page
Nov 21, 2026
Merged

markhazleton merged 1 commit into
mainfrom
docs/changelog-page

Conversation

@markhazleton

Copy link
Copy Markdown
Owner

Why

  • The docs site had no release history.
  • GitHub Releases stopped at v1.0.262 while npm is at 2.0.1. Nothing ever created releases: publish.yml only published to npm and recorded a deployment, and the last two releases were created by hand.
  • v1.4.0 never reached npm. Its publish run failed at npm publish with E404 Not Found - PUT (expired/invalid NPM_TOKEN). The rollback job only echoed a message, so nobody noticed. Its changes shipped in 2.0.0.

What changed

Changelog page

  • docs/changelog.html is generated from CHANGELOG.md by scripts/generate-changelog-page.js (markdown-it, raw HTML disabled). It shows released versions only, with no timestamps, so the output is deterministic.
  • Wired into the version lifecycle script, so npm run release:* regenerates and stages it in the version commit. Also available as npm run docs:changelog.
  • Linked from the landing page (new card + footer link).

GitHub Releases

  • publish.yml: new "Create GitHub Release" step after npm publish, with notes from that version's CHANGELOG.md section (scripts/extract-release-notes.js). It skips the step if the release already exists. Job permission contents: read → write.
  • Shared parsing lives in scripts/changelog-utils.js.

Failure visibility

  • The rollback job now opens a GitHub issue with the run link and triage steps (issues: write).

CHANGELOG.md

Deps

  • markdown-it is now a direct devDependency (it was only transitive via typedoc).

Verification

  • Pre-commit hook: lint + 339 tests pass
  • Page: 12 releases, unique anchors, no leftover markdown, code escaped; no horizontal overflow at 360/390px
  • extract-release-notes.js: works for 2.0.1 and v1.4.0, exits 1 for an unknown version
  • publish.yml parses as valid YAML
  • Release step runs end-to-end on the next tag push

Follow-up (outside this PR)

Backfill GitHub Releases for v1.2.0 – v2.0.1 from CHANGELOG.md.

🤖 Generated with Claude Code

GitHub Releases stopped at v1.0.262 because nothing created them: the
publish workflow only published to npm and recorded a deployment.

- docs/changelog.html: release history page generated from CHANGELOG.md
  (scripts/generate-changelog-page.js), regenerated and staged during
  `npm version`, linked from the landing page
- publish.yml: create the GitHub Release after a successful npm publish,
  with notes from the version's CHANGELOG.md section
  (scripts/extract-release-notes.js); skips if the release exists
- publish.yml: on failure, open a GitHub issue instead of only logging,
  since the v1.4.0 publish failed (npm E404, bad token) unnoticed
- CHANGELOG.md: note that 1.4.0 never reached npm, and document the
  unreleased changes since 2.0.1
- Add markdown-it as a direct devDependency (was only transitive)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@markhazleton
markhazleton merged commit e6b9c85 into main Nov 21, 2026
14 checks passed
@markhazleton
markhazleton deleted the docs/changelog-page branch November 21, 2026 15:02
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