Skip to content

build(release): release the TypeScript package only when a published file changes - #23

Merged
KyleJune merged 1 commit into
mainfrom
claude/project-thread-lehcsr
Dec 4, 2026
Merged

KyleJune merged 1 commit into
mainfrom
claude/project-thread-lehcsr

Conversation

@KyleJune

@KyleJune KyleJune commented Dec 4, 2026

Copy link
Copy Markdown
Member

Requested by Kyle · project thread

Summary

The release filter counted every commit under typescript/ or conformance/. A feat or fix commit that changed only tests, scripts, examples, CI or the conformance vectors would therefore cut a release with no package difference. That hasn't happened yet: 0.13.0, the only release since the move, came from a real source change. Now only commits that change a file the npm or JSR package publishes count. Rust-only commits (draft PR 22) were already skipped and still are. This is the same fix as udibo/oauth2 PR 360.

Changes

  • scripts/release-paths.ts: a paths entry that starts with ! becomes an excluding git pathspec glob (:(top,glob,exclude)), so test files inside a counted directory don't count.
  • .releaserc.json: paths is now typescript/src/ (without *.test.ts), README.md, LICENSE, package.json, jsr.json, tsconfig.json and tsconfig.build.json.
  • The package embeds nothing from conformance/. Only src/conformance.test.ts reads it.
  • release-config.test.ts checks paths against files in package.json, publish in jsr.json and tsconfig.build.json, so the list and the publish configuration can't drift apart.
  • PUBLISHING.md describes the new rule.

Testing

  • pnpm check passes, and so do pnpm test scripts/ (30 tests).
  • Mutation checks: putting the old paths back fails both release-config tests. Dropping the exclude magic fails both new release-paths tests.

Generated by Claude Code

…file changes

The release filter counted every commit under typescript/ or
conformance/, so a feat commit that changed only tests, scripts,
examples or the conformance vectors would cut a release with no package
difference. Count only the files the npm and JSR packages publish, add
excluding globs to release-paths for test files, and test that the list
matches package.json, jsr.json and tsconfig.build.json.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YPqZer6DeXwJsTVBC3d77s
@KyleJune KyleJune self-assigned this Dec 4, 2026
@KyleJune
KyleJune marked this pull request as ready for review December 4, 2026 23:24
@KyleJune
KyleJune merged commit cee0734 into main Dec 4, 2026
20 checks passed
@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 0.13.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants