Skip to content

fix(release): wrap version+lint chain in bash -c#17

Merged
faraa2m merged 1 commit into
mainfrom
fix/release-version-shell
May 10, 2026
Merged

fix(release): wrap version+lint chain in bash -c#17
faraa2m merged 1 commit into
mainfrom
fix/release-version-shell

Conversation

@faraa2m
Copy link
Copy Markdown
Owner

@faraa2m faraa2m commented May 10, 2026

Summary

Phase I bug. The Changesets action's `version` input is passed as args to `changeset`, not interpreted by a shell — so `npx changeset version && npm run lint:fix` failed with:

```
🦋 error Too many arguments passed to changesets - we only accept the command name as an argument
```

Wrap in `bash -c "..."` so the shell evaluates the chain. Now `changeset version` runs first, then `npm run lint:fix` re-formats the bumped package.json files (preserves Wave 1 Biome compact-array protection).

After this merges:

  1. Release workflow runs on `main` → `bash -c` evaluates correctly.
  2. Changesets bumps versions for all 11 accumulated changesets, runs lint:fix, commits to `changeset-release/main`.
  3. Workflow opens the Version Packages PR — your v1.0.0 trigger.

Test plan

  • YAML syntax valid
  • Workflow runs to completion on merge
  • Version Packages PR opens with all 11 changesets consumed

🤖 Generated with Claude Code

The Changesets action's `version` input is passed straight as the args
to `changeset` — not interpreted by a shell. Using `&&` made the chain
land as positional args:

  Too many arguments passed to changesets - we only accept the command
  name as an argument

Wrap in `bash -c "..."` so the shell evaluates the chain. Now `changeset
version` runs first, then `npm run lint:fix` re-formats the bumped
package.json files (Wave 1 Biome compact-array fix preserved).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tokenometer Ready Ready Preview, Comment May 10, 2026 5:14am

@faraa2m faraa2m merged commit b326351 into main May 10, 2026
7 checks passed
@faraa2m faraa2m deleted the fix/release-version-shell branch May 10, 2026 05:15
faraa2m added a commit that referenced this pull request May 11, 2026
The Changesets action's `version` input is passed straight as the args
to `changeset` — not interpreted by a shell. Using `&&` made the chain
land as positional args:

  Too many arguments passed to changesets - we only accept the command
  name as an argument

Wrap in `bash -c "..."` so the shell evaluates the chain. Now `changeset
version` runs first, then `npm run lint:fix` re-formats the bumped
package.json files (Wave 1 Biome compact-array fix preserved).

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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