Skip to content

Commit 035e50b

Browse files
committed
fixup! chore: setup multiple storybooks to deploy
1 parent 8c0c8db commit 035e50b

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/docsite-publish-ghpages.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,15 @@ jobs:
4949
- name: Build storybook
5050
run: |
5151
yarn nx run public-docsite-v9:build-storybook --nxBail
52-
yarn nx run public-docsite-v9:build-storybook:react --nxBail
5352
env:
5453
STORYBOOK_APPINSIGHTS_INSTRUMENTATION_KEY: ${{ secrets.STORYBOOK_APPINSIGHTS_INSTRUMENTATION_KEY }}
54+
DEPLOY_PATH: '/fluentui/'
55+
56+
- name: Build v9 Storybook
57+
run: |
58+
yarn nx run public-docsite-v9:build-storybook:react--nxBail
59+
env:
60+
DEPLOY_PATH: '/fluentui/react/'
5561

5662
- name: Build Charts Storybook
5763
run: |

apps/public-docsite-v9/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"description": "Fluent UI React v9 documentation",
66
"scripts": {
77
"build-storybook": "cross-env NODE_OPTIONS=--max_old_space_size=3072 STORYBOOK_BASE=/fluentui/ storybook build -o ./dist/storybook --docs",
8-
"build-storybook:react": "cross-env NODE_OPTIONS=--max_old_space_size=3072 STORYBOOK_BASE=/fluentui/react/ storybook build -o ./dist/storybook/react --docs --preview-url='/fluentui/react'",
8+
"build-storybook:react": "cross-env NODE_OPTIONS=--max_old_space_size=3072 STORYBOOK_BASE=/fluentui/react/ storybook build -o ./dist/storybook/react --docs",
99
"postbuild-storybook": "yarn rewrite-title",
1010
"rewrite-title": "node -r ../../scripts/ts-node/src/register ../../scripts/storybook/src/scripts/rewrite-title.ts --title 'Fluent UI React v9' --distPath ./dist/storybook",
1111
"generate-llms-docs": "yarn storybook-llms-extractor --config storybook-llms.config.js",

0 commit comments

Comments
 (0)