Skip to content

CLI: Fix init --skip-install#28226

Merged
shilman merged 1 commit intonextfrom
shilman/27096-fix-init-skip-install
Jun 12, 2024
Merged

CLI: Fix init --skip-install#28226
shilman merged 1 commit intonextfrom
shilman/27096-fix-init-skip-install

Conversation

@shilman
Copy link
Member

@shilman shilman commented Jun 12, 2024

Closes #27096

What I did

We cannot run storybook dev as part of install if we do not actually install the packages. The bug that we were trying to do this and it was crashing before Storybook had added the packages to package.json.

Checklist for Contributors

Testing

Manual testing

In a fresh project (I've done this):

  1. Build this branch
  2. In a fresh project, run path/to/code/lib/cli/bin/index.js init --skip-install
  3. Verify that none of the packages have been added to node_modules
  4. Run pnpm install
  5. Run storybook and verify that it runs correctly

🦋 Canary release

This PR does not have a canary release associated. You can request a canary release of this pull request by mentioning the @storybookjs/core team here.

core team members can create a canary release here or locally with gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=<PR_NUMBER>

@shilman shilman added bug cli patch:yes Bugfix & documentation PR that need to be picked to main branch ci:normal labels Jun 12, 2024
@nx-cloud
Copy link

nx-cloud bot commented Jun 12, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 6f1110f. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 2 targets

Sent with 💌 from NxCloud.

@shilman shilman requested a review from JReinhold June 12, 2024 16:14
@shilman shilman self-assigned this Jun 12, 2024
@shilman shilman merged commit 3385570 into next Jun 12, 2024
@shilman shilman deleted the shilman/27096-fix-init-skip-install branch June 12, 2024 16:44
shilman added a commit that referenced this pull request Jun 13, 2024
…p-install

CLI: Fix `init --skip-install`
(cherry picked from commit 3385570)
@github-actions github-actions bot added the patch:done Patch/release PRs already cherry-picked to main/release branch label Jun 13, 2024
@valentinpalkovic valentinpalkovic added needs qa Indicates that this needs manual QA during the upcoming minor/major release and removed needs qa Indicates that this needs manual QA during the upcoming minor/major release labels Jul 5, 2024
@ndelangen ndelangen removed the patch:yes Bugfix & documentation PR that need to be picked to main branch label Oct 28, 2025
@valentinpalkovic valentinpalkovic added needs qa Indicates that this needs manual QA during the upcoming minor/major release and removed needs qa Indicates that this needs manual QA during the upcoming minor/major release labels Jul 5, 2024
@ndelangen ndelangen removed the patch:yes Bugfix & documentation PR that need to be picked to main branch label Oct 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug ci:normal cli patch:done Patch/release PRs already cherry-picked to main/release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: storybook init fails to setup dependencies correctly when --skip-install install is set in ci/cd pipeline

3 participants