Skip to content

fix(ci): drop -- separator from changeset CLI invocations (v3 arg parsing) - #144

Merged
iivvaannxx merged 1 commit into
mainfrom
fix/changesets-cli-v3-cac-args
Sep 18, 2026
Merged

iivvaannxx merged 1 commit into
mainfrom
fix/changesets-cli-v3-cac-args

Conversation

@iivvaannxx

Copy link
Copy Markdown
Collaborator

Summary

  • Merging fix(ci): update changesets/action inputs for v2 #143 fixed the changesets/action v2 input rename, but the Publish workflow on main is now hanging/interactive instead of failing outright (run: https://github.com/adobe/aio-lib-telemetry/actions/runs/35333123591, cancelled after ~3 min by CI's own timeout).
  • Root cause: @changesets/cli v3 rewrote its argument parser to use cac (see its changelog: "Use cac for CLI arg parsing and handling"). The workflow invokes pnpm run changeset -- version / pnpm run changeset -- publish. With the old parser the leading -- was a harmless no-op and publish/version still resolved as the subcommand. cac doesn't skip it the same way, so no subcommand resolves and the CLI falls back to its default add command, which drops into the interactive "What kind of change is this?" prompt and hangs forever waiting for stdin.
  • Fix: drop the unneeded --pnpm run <script> <args> doesn't require it.

Test plan

  • Reproduced locally: pnpm run changeset -- publish --help drops into the interactive add prompt; pnpm run changeset publish --help and pnpm run changeset version --help both resolve correctly and print their own help
  • Merge and confirm the next Publish run on main completes without hanging

@changesets/cli v3 switched its argument parser to cac, which no
longer treats a leading -- as a no-op before the subcommand. With
"changeset -- publish"/"changeset -- version", cac fails to resolve
a subcommand and falls back to the interactive `add` flow, hanging
the Publish workflow until it's cancelled by CI. Verified locally
that "changeset -- publish" reproduces the interactive prompt while
"changeset publish" resolves correctly.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@iivvaannxx
iivvaannxx requested a review from a team as a code owner September 18, 2026 10:14
@changeset-bot

changeset-bot Bot commented Sep 18, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: d87bac5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@iivvaannxx
iivvaannxx merged commit 1ebd6c5 into main Sep 18, 2026
5 checks passed
@iivvaannxx
iivvaannxx deleted the fix/changesets-cli-v3-cac-args branch September 18, 2026 10:14
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