-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: storybook init
fails to setup dependencies correctly when --skip-install
install is set in ci/cd pipeline
#27096
Comments
@manuel3108 thanks for opening this issue. Can you clarify your expectation of running init with the |
@vanessayuenn As of my understanding As of this point I'm not 100% what exectly causes this issue, as I am unable to reproduce this locally at all, running a windows machine. I suspect the env variable |
It looks like it tries to run the install before and after setting up storybook. I guess the storybook setup must somehow depend on the libraries being installed storybook/code/lib/cli/src/initiate.ts Line 340 in ba52208
|
Thanks to @AdrianGonz97 who fortunately found out that somehow this bug has already fixed in the I have updated the sample workflow provided above to use |
Describe the bug
This is the
package.json
that was produced by the storybook cli:The initializer only added
@chromatic-com/storybook
for whatever reason, and skips adding all other packages, although the cli output saysGetting the correct version of 9 packages
. Therefore I would expect to see 9 additional packages in mypackage.json
Only happens if
--skip-install
is set. Otherwise everything works correctly.To Reproduce
Here is a simple github workflow to try it out: https://github.com/manuel3108/storybook-missing-packages-repro/blob/test-2/.github/workflows/pr.yml
You can find the latest workflow output here: https://github.com/manuel3108/storybook-missing-packages-repro/actions/runs/9045619764/job/24855552856
System
Storybook Environment Info: System: OS: Linux 6.5 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish) CPU: (4) x64 AMD EPYC 7763 64-Core Processor Shell: 5.1.16 - /bin/bash Binaries: Node: 20.12.2 - /opt/hostedtoolcache/node/20.12.2/x64/bin/node Yarn: 1.22.22 - /usr/local/bin/yarn npm: 10.5.0 - /opt/hostedtoolcache/node/20.12.2/x64/bin/npm <----- active pnpm: 9.1.0 - /opt/hostedtoolcache/node/20.12.2/x64/bin/pnpm Browsers: Chrome: 124.0.6367.60
Additional context
No response
Tasks
The text was updated successfully, but these errors were encountered: