From 1dc20dd637b5d3f9f2ca0b5eaddbaed4f92b9fab Mon Sep 17 00:00:00 2001 From: jonniebigodes Date: Thu, 19 Jan 2023 17:47:05 +0000 Subject: [PATCH] upgrade docs changes --- docs/configure/upgrading.md | 13 ++++++++++--- .../common/storybook-upgrade-prerelease.npm.js.mdx | 3 +++ .../common/storybook-upgrade-prerelease.pnpm.js.mdx | 3 +++ 3 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 docs/snippets/common/storybook-upgrade-prerelease.npm.js.mdx create mode 100644 docs/snippets/common/storybook-upgrade-prerelease.pnpm.js.mdx diff --git a/docs/configure/upgrading.md b/docs/configure/upgrading.md index 08ac9d49be0..56be45f5dea 100644 --- a/docs/configure/upgrading.md +++ b/docs/configure/upgrading.md @@ -38,9 +38,16 @@ In addition to the above, Storybook is under constant development, and we publis To upgrade to the latest pre-release: -```sh -npx storybook@next upgrade --prerelease -``` + + + + + If you'd like to downgrade to a stable version, manually edit the package version numbers in your `package.json` and re-install. diff --git a/docs/snippets/common/storybook-upgrade-prerelease.npm.js.mdx b/docs/snippets/common/storybook-upgrade-prerelease.npm.js.mdx new file mode 100644 index 00000000000..9e625c3977b --- /dev/null +++ b/docs/snippets/common/storybook-upgrade-prerelease.npm.js.mdx @@ -0,0 +1,3 @@ +```shell +npx storybook@next upgrade --prerelease +``` diff --git a/docs/snippets/common/storybook-upgrade-prerelease.pnpm.js.mdx b/docs/snippets/common/storybook-upgrade-prerelease.pnpm.js.mdx new file mode 100644 index 00000000000..47d087049d1 --- /dev/null +++ b/docs/snippets/common/storybook-upgrade-prerelease.pnpm.js.mdx @@ -0,0 +1,3 @@ +```shell +pnpx storybook@next upgrade --prerelease +```