Skip to content

fix(ci): changesets version input is not a shell line - #4

Merged
expilu merged 1 commit into
mainfrom
feature/cicd
Sep 26, 2026
Merged

expilu merged 1 commit into
mainfrom
feature/cicd

Conversation

@expilu

@expilu expilu commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Follow-up to #3: the first Release run on main failed because the changesets action whitespace-splits its version: input and spawns it as args (no shell) — the chained && command was rejected (CACError: Unused args: &&, node, ...).

Fix: the chaining moves into a package script (changeset:version), the action gets a single command:

version: npm run changeset:version

Rehearsed off main in a disposable clone: bumps 0.0.2 → 0.1.0, seeds CHANGELOG.md, syncs src/version.ts.

Machine-side before merging (required): Settings → Actions → General → Workflow permissions → enable "Allow GitHub Actions to create and approve pull requests" — without it the Version Packages PR creation is blocked (can_approve_pull_request_reviews is currently false).

The changesets action whitespace-splits the version/publish inputs and
spawns them as args, so '&&' chains are rejected (CACError: unused args).
Move the version chaining into the package script 'changeset:version'
and point the action at it as a single command.

Rehearsed off origin/main in a disposable clone: bumps 0.0.2 -> 0.1.0,
seeds CHANGELOG.md and syncs src/version.ts.
@expilu
expilu merged commit 151ccd7 into main Sep 26, 2026
5 checks passed
@expilu
expilu deleted the feature/cicd branch September 26, 2026 15:22
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