Skip to content
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

CLI: Fix init --skip-install #28226

Merged
merged 1 commit into from
Jun 12, 2024
Merged

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
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
71 of 80 checks passed
@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
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 patch:yes Bugfix & documentation PR that need to be picked to main branch
Projects
None yet
2 participants