Skip to content

ci: create the GitHub release from a changelog the tests require - #1

Merged
felixsanz merged 1 commit into
mainfrom
ci/release-notes
Nov 19, 2026
Merged

felixsanz merged 1 commit into
mainfrom
ci/release-notes

Conversation

@felixsanz

@felixsanz felixsanz commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

25 tags and no releases, so nothing announced what any version changed.

The release comes from the changelog, and a test requires it

publish.yml gains a github-release job that reads the tag's section out of CHANGELOG.md and creates the release with it.

What makes it more than a convenience is test/changelog.test.ts: it reads the version out of package.json and fails when CHANGELOG.md has no section for it. Since bun test already runs in the publishing job before npm publish, a version bump with no entry fails the run before anything is published.

The job runs after publish, never before, because a release announcing a version that failed to publish points at nothing installable. It is a separate job so the publishing job keeps contents: read, and it sits outside the npm environment, which exists only to gate the trusted publisher. It is idempotent: re-running the workflow after a flake edits the release instead of failing on one that exists.

The changelog starts at 1.4.0

1.4.0 gets a real entry, server instructions and the idempotent hints. The 24 releases before it have none, and the file says so and points at the commit history rather than carrying 24 entries reconstructed from commit subjects.

This means a tag for a version with no entry fails the release. That is the intent: write the entry.

Verified

bun run lint, bun run typecheck, bun test and bun run build all clean, 19 tests. The extractor returns 1.4.0's section and exits 1 on 1.3.9, which has no entry, and the captured output carries no bun run banner, so the release body is the changelog text and nothing else.

Unlike PyPI, npm has no changelog field to point at, so there is no packaging change here. The repository link already on the package page is what reaches these releases.

@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. To trigger a review, include coderabbit-review in the PR description. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 51ef3030-6bb1-4e33-9695-2c634561371b

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@felixsanz
felixsanz merged commit c706525 into main Nov 19, 2026
3 checks passed
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