Skip to content

Conversation

Copy link

Copilot AI commented Jan 23, 2026

What are you trying to accomplish?

The "Deploy preview / Build" workflow fails with error: too many arguments for 'build'. Expected 0 arguments but got 1.

Storybook v10 changed the build command to not accept positional arguments. The build script was passing public/static as a positional arg after -o public/storybook, which is invalid syntax.

What approach did you choose and why?

Removed the public/static positional argument from docs/script/build-storybook:

-npx storybook build -o public/storybook public/static
+npx storybook build -o public/storybook

Static files are already copied via staticDirs: ['../stories/static'] in .storybook/main.js - the extra argument was redundant and now breaks with v10.

What should reviewers focus on?

Verify the workflow passes and static files are served correctly in the deployed preview.

Can these changes ship as is?

  • Yes, this PR does not depend on additional changes. 🚢
Original prompt

Fix the failing GitHub Actions workflow Deploy preview / Build
Analyze the workflow logs, identify the root cause of the failure, and implement a fix.
Job ID: 61310416475
Job URL: https://github.com/primer/css/actions/runs/21298595492/job/61310416475


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@changeset-bot
Copy link

changeset-bot bot commented Jan 23, 2026

⚠️ No Changeset found

Latest commit: d8ca91e

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

Copilot AI changed the title [WIP] Fix the failing GitHub Actions workflow Deploy preview Fix storybook build command for v10 compatibility Jan 23, 2026
Copilot AI requested a review from TylerJDev January 23, 2026 19:37
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.

2 participants