Skip to content

Fix Storybook CI step invoking wrong npm script - #997

Merged
willtheorangeguy merged 1 commit into
mainfrom
fix/storybook-ci-script
Aug 8, 2026
Merged

Fix Storybook CI step invoking wrong npm script#997
willtheorangeguy merged 1 commit into
mainfrom
fix/storybook-ci-script

Conversation

@willtheorangeguy

Copy link
Copy Markdown
Owner

Summary

  • Fixes the "Build Storybook style guide" CI step in astro.yml

Root cause

The step ran pnpm storybook build --output-dir public/styleguide. Because storybook is defined in package.json as storybook dev -p 6006, pnpm expanded it to storybook dev -p 6006 build --output-dir public/styleguide — passing build as an unknown option to the dev server command.

Fix

Changed to pnpm storybook:build, which maps directly to storybook build --output-dir public/styleguide.


Generated by Claude Code

'pnpm storybook build --output-dir ...' ran the 'storybook' npm script
(storybook dev -p 6006) and appended args, causing 'unknown option'.
Use 'pnpm storybook:build' to invoke the correct build script.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LgBsw219iQB1xJVRdwbkxN
@willtheorangeguy
willtheorangeguy merged commit 51ed77f into main Aug 8, 2026
10 of 11 checks passed
@willtheorangeguy
willtheorangeguy deleted the fix/storybook-ci-script branch August 8, 2026 21:24
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