Add release and promote actions for the shared changesets release flow - #20
Merged
Merged
Conversation
…se flow kubb-labs/kubb and kubb-labs/plugins each carried byte-identical scripts/release.mjs, scripts/createReleases.mjs, and scripts/verifyRegistry.mjs implementing the stage/promote/verify/tag/release flow. Move that logic here as two composite actions so both repos consume one copy instead of two.
|
This was referenced Jul 15, 2026
2 tasks
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.
Summary
kubb-labs/kubbandkubb-labs/pluginseach carried a byte-for-byte identical trio of release scripts (scripts/release.mjs,scripts/createReleases.mjs,scripts/verifyRegistry.mjs) implementing the stage → promote → verify-on-npm → tag → create-GitHub-release flow used by both repos'release.yml..github/actions/releasewraps thechangesets/actioncall (version + stage-publish via the bundledrelease.mjs), exposingstaged/staged_packagesoutputs..github/actions/promotewraps the verify-on-npm / tag / create-GitHub-release sequence (bundlingverifyRegistry.mjs,createReleases.mjs, and theformat.mjsregex-helper it depends on), exposing anapprovedoutput.package.json+vitest+ atest.ymlworkflow so this repo can run the moved test suite (previously there was no package.json or CI test workflow here at all).Why composite actions instead of a reusable workflow
changesets/action'spublish:input is a literal shell command string it runs internally, so it can't be auses:reference. A composite action step can still nest auses: changesets/action@...step whosepublish:points at${{ github.action_path }}/release.mjs, i.e. the bundled script's on-runner path. That keeps each consumer's own job structure/permissions/notify steps untouched (they differ between kubb and plugins) while collapsing the actual duplicated logic into one place.Test plan
pnpm install && pnpm testpasses (18/18 tests, migrated verbatim from kubb's copies).kubb-labs/kubb#<PR>andkubb-labs/plugins#<PR>(opened alongside this one) pin to this branch's current commit SHA. If this PR is merged with a strategy that changes that SHA (squash/rebase), those two PRs' pinned SHA should be updated to matchmainbefore merging them.Related: kubb-labs/kubb and kubb-labs/plugins PRs consuming these actions (opened alongside this one).
Generated by Claude Code