Add workflow_dispatch prerelease publish for cua-cli#58
Draft
rgarcia wants to merge 1 commit into
Draft
Conversation
Publish @onkernel/cua-cli from any branch under an npm dist-tag (never `latest`) as `<version>-<dist-tag>.<run-number>`, unique per run, so unmerged work can be tried via `npm install -g @onkernel/cua-cli@<tag>`. Unlike release-cua-cli.yml there is no "tag on main" gate; it publishes through OIDC trusted publishing the same way. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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
Adds
.github/workflows/prerelease-cua-cli.yml— a manually-triggered workflow to publish a prerelease of@onkernel/cua-clifrom any branch, so unmerged work can be exercised via a normalnpm install.workflow_dispatchwith adist_taginput (defaultext).<pkg-version>-<dist_tag>.<run_number>(unique per run) under the chosen dist-tag, neverlatest— normalnpm install @onkernel/cua-cliis unaffected.release-cua-cli.yml.npm publish --tag <dist_tag>.Once published:
npm install -g @onkernel/cua-cli@<dist_tag>.Two one-time setup steps (required before first run)
main.workflow_dispatchworkflows are only dispatchable if they exist on the default branch. After merge, "Run workflow" appears under Actions and you can point it at any branch.release-cua-cli.yml), so add this workflow as a trusted publisher for@onkernel/cua-clion npmjs.com: repokernel/cua, workflowprerelease-cua-cli.yml. (Alternatively, swap the publish step to a granularNPM_TOKENsecret — say the word and I'll wire that instead.)Usage
Actions → Prerelease CUA CLI → Run workflow → pick the branch (e.g.
hypeship/harness-extension-host) → setdist_tag→ Run. Thennpm i -g @onkernel/cua-cli@<dist_tag>.Test plan
hypeship/harness-extension-hostwithdist_tag=extnpm i -g @onkernel/cua-cli@extand confirmcua --helpshows--self-extend/--no-extensions🤖 Generated with Claude Code