Repository navigation
docs: add changelog page and automate GitHub Releases - #17
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
publish.ymlonly published to npm and recorded a deployment, and the last two releases were created by hand.npm publishwithE404 Not Found - PUT(expired/invalidNPM_TOKEN). The rollback job only echoed a message, so nobody noticed. Its changes shipped in 2.0.0.What changed
Changelog page
docs/changelog.htmlis generated fromCHANGELOG.mdbyscripts/generate-changelog-page.js(markdown-it, raw HTML disabled). It shows released versions only, with no timestamps, so the output is deterministic.versionlifecycle script, sonpm run release:*regenerates and stages it in the version commit. Also available asnpm run docs:changelog.GitHub Releases
publish.yml: new "Create GitHub Release" step afternpm publish, with notes from that version'sCHANGELOG.mdsection (scripts/extract-release-notes.js). It skips the step if the release already exists. Job permissioncontents: read→write.scripts/changelog-utils.js.Failure visibility
issues: write).CHANGELOG.md
[Unreleased]now documents chore: update dependencies #15, ci(security): audit prod deps strictly, allowlist dev-only advisories #16, and this PR (the release script refuses an empty section).Deps
markdown-itis now a direct devDependency (it was only transitive via typedoc).Verification
extract-release-notes.js: works for2.0.1andv1.4.0, exits 1 for an unknown versionpublish.ymlparses as valid YAMLFollow-up (outside this PR)
Backfill GitHub Releases for v1.2.0 – v2.0.1 from
CHANGELOG.md.🤖 Generated with Claude Code