Skip to content

CLI: Fix upgrade notification message#22933

Merged
shilman merged 1 commit into
nextfrom
shilman/fix-cli-upgrade-notification
Jun 6, 2023
Merged

CLI: Fix upgrade notification message#22933
shilman merged 1 commit into
nextfrom
shilman/fix-cli-upgrade-notification

Conversation

@shilman

@shilman shilman commented Jun 6, 2023

Copy link
Copy Markdown
Member

N/A

What I did

When the upgrade notification check succeeds, we tell the user to upgrade.

The upgrade message is wrong, however. If the upgrade version is stable, it should benpx storybook@latest upgrade. If the upgrade version is a prerelease, it should be npx storybook@next upgrade --prerelease.

That's because the @next release might contain logic & automigrations that are specific to the next release.

Note that this logic assumes that all prereleases are on the next dist tag, which might not be the case in the future. Also this should be updated when we overhaul the CLI @JReinhold

@shilman shilman added bug cli patch:yes Bugfix & documentation PR that need to be picked to main branch labels Jun 6, 2023
@shilman shilman requested a review from a team as a code owner June 6, 2023 07:31
@shilman shilman self-assigned this Jun 6, 2023

@yannbf yannbf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shilman shilman merged commit 4b520bf into next Jun 6, 2023
@shilman shilman deleted the shilman/fix-cli-upgrade-notification branch June 6, 2023 09:00
@shilman shilman added the patch:done Patch/release PRs already cherry-picked to main/release branch label Jun 6, 2023
shilman added a commit that referenced this pull request Jun 6, 2023
…tification

CLI: Fix upgrade notification message
@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 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.

4 participants