Skip to content

Commit

Permalink
Merge pull request #22238 from storybookjs/chore/fix-sandboxes-branch
Browse files Browse the repository at this point in the history
Build: Use `next` branch for sandbox and repro commands
  • Loading branch information
shilman authored May 1, 2023
2 parents 71024ff + 428274a commit 4a1fa3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/lib/cli/src/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ command('sandbox [filterValue]')
.alias('repro') // for backwards compatibility
.description('Create a sandbox from a set of possible templates')
.option('-o --output <outDir>', 'Define an output directory')
.option('-b --branch <branch>', 'Define the branch to download from', 'main')
.option('-b --branch <branch>', 'Define the branch to download from', 'next')
.option('--no-init', 'Whether to download a template without an initialized Storybook', false)
.action((filterValue, options) =>
sandbox({ filterValue, ...options }).catch((e) => {
Expand Down
2 changes: 1 addition & 1 deletion scripts/tasks/sandbox-parts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const create: Task['run'] = async ({ key, template, sandboxDir }, { dryRu
} else {
await executeCLIStep(steps.repro, {
argument: key,
optionValues: { output: sandboxDir, branch: 'main', init: false, debug },
optionValues: { output: sandboxDir, branch: 'next', init: false, debug },
cwd: parentDir,
dryRun,
debug,
Expand Down

0 comments on commit 4a1fa3d

Please sign in to comment.