Consume release scripts from kubb-labs/config - #715
Merged
Conversation
The scripts/release.mjs, scripts/createReleases.mjs, and scripts/verifyRegistry.mjs trio was byte-identical to kubb-labs/kubb's copy. Both now delegate to the release and promote composite actions in kubb-labs/config, which bundle these scripts, so the release/promote jobs here shrink to a single step each. internals/changelog/format.mjs is also removed: its only consumer here was createReleases.mjs (this repo has no custom changelog-writing hook like kubb's internals/changelog/index.mjs), and that script now bundles its own copy of format.mjs inside the config action.
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
|
Contributor
📊 Dependency Size ChangesNote 🎉 This PR removes 8.1 kB of dependencies.
Total size change: -8.1 kB |
Contributor
|
Size Change: 0 B Total Size: 294 kB ℹ️ View Unchanged
|
More templates
@kubb/plugin-axios
@kubb/plugin-cypress
@kubb/plugin-faker
@kubb/plugin-fetch
@kubb/plugin-mcp
@kubb/plugin-msw
@kubb/plugin-react-query
@kubb/plugin-redoc
@kubb/plugin-swr
@kubb/plugin-ts
@kubb/plugin-vue-query
@kubb/plugin-zod
commit: |
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.
🎯 Changes
scripts/release.mjs,scripts/createReleases.mjs, andscripts/verifyRegistry.mjswere byte-for-byte identical to kubb-labs/kubb's copies of the same files. This PR removes them here and delegates to two new composite actions in kubb-labs/config (kubb-labs/config#20):releasejob'schangesets/actionstep is replaced withkubb-labs/config/.github/actions/release@<sha>, which wraps the samechangesets/actioncall internally (version + stage-publish), using a bundled copy ofrelease.mjs.promotejob's verify/tag/create-release steps collapse intokubb-labs/config/.github/actions/promote@<sha>(omittingrelease-mode, so it defaults to per-package — unchanged behavior, since packages here version and changelog independently).internals/changelog/format.mjsis also removed: its only consumer here wascreateReleases.mjs(unlike kubb-labs/kubb, this repo has no custom changelog-writing hook, it uses@changesets/changelog-github), andcreateReleases.mjsnow bundles its own copy offormat.mjsinside the config action.CONTRIBUTING.mdupdated to describe the new action-based flow instead of the local scripts.This is a pure "where does the logic live" change: no job structure, permissions, build/test/coverage/deploy-platform steps changed.
Note: this currently pins to kubb-labs/config's PR branch commit SHA. Once kubb-labs/config#20 merges, please confirm the pinned SHA here still matches
main(it will if merged via a merge commit; it won't if squashed or rebased, in which case this PR's SHA needs a quick update before merging).✅ Checklist
pnpm run test.🚀 Release Impact
Generated by Claude Code