Skip to content

ci: release the SDK when any client source file it ships from changes - #476

Merged
josecarneiro merged 1 commit into
mainfrom
claude/sdk-js-pr-470-review-a71oun
Sep 2, 2026
Merged

ci: release the SDK when any client source file it ships from changes#476
josecarneiro merged 1 commit into
mainfrom
claude/sdk-js-pr-470-review-a71oun

Conversation

@josecarneiro

Copy link
Copy Markdown
Contributor

Summary

Minimal alternative to #470.

The auto-release gate only fired on clients/*/src/openapi.json, but the SDK generator (scripts/generate-sdk-v2.ts) copies five files out of each clients/*/src/ into @epilot/sdk: the spec, openapi.d.ts, openapi-runtime.json, additional-types.ts and schema-model.ts. A change to any of the other four landed on main unpublished (#464, #469 — both schema-model.ts changes) and only shipped when a later spec PR swept it up.

This PR extends the single grep pattern to match all five client source inputs. Nothing else changes: because the gate only watches clients/ and the auto-release commit only ever touches packages/epilot-sdk-v2/ and README.md, the release commit structurally cannot re-trigger the job — so no exclusion regex and no [skip release] marker are needed (the parts of #470 this replaces).

Known, accepted trade-off: changes to the SDK's own runtime (packages/epilot-sdk-v2/src/*.ts) or to the generator still don't auto-release. The manual escape hatch is pushing an @epilot/sdk@x.y.z tag, which runs the publish-sdk job.

Test plan

Verified the new expression against real main-history commit file lists:

🤖 Generated with Claude Code

https://claude.ai/code/session_01QdG1fUzmCxtQ9Etuya2sks


Generated by Claude Code

The auto-release gate only fired on clients/*/src/openapi.json, but the
SDK generator also copies openapi.d.ts, openapi-runtime.json,
additional-types.ts and schema-model.ts out of clients/*/src into
@epilot/sdk. A change to any of those landed on main unpublished (#464,
#469) and only shipped when a later spec PR swept it up.

The gate now matches all five client source inputs. Nothing else
changes: the release commit only touches packages/epilot-sdk-v2/ and
README.md, so it still cannot re-trigger the job.

Verified against real commit file lists: #464, #469 and the spec merges
#463/#473 trigger; the auto-release commits, a changeset-only commit and
the version-packages chore do not.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QdG1fUzmCxtQ9Etuya2sks
@josecarneiro
josecarneiro merged commit 54f39cb into main Sep 2, 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