Skip to content

Commit 43df70f

Browse files
authored
chore(chromatic): fix sb chromatic build (#8557)
1 parent 61301b1 commit 43df70f

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/chromatic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
with:
3030
token: ${{ secrets.GITHUB_TOKEN }}
3131
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
32-
buildScriptName: 'build:storybook'
32+
buildScriptName: 'build:sb'
3333
skip: 'dependabot/**'
3434
env:
3535
STORYBOOK_ENV: chromatic

.github/workflows/docs-stable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
3636
- name: Build Storybook
3737
run: |
38-
yarn build:storybook
38+
yarn build:sb-with-search
3939
yarn build:storybook-sitemap --basePath "v${{ env.MAJOR_VERSION }}"
4040
env:
4141
NODE_OPTIONS: '--max-old-space-size=4096'

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
- name: Install and Build
8181
run: |
8282
yarn install --immutable
83-
yarn build:storybook
83+
yarn build:sb-with-search
8484
env:
8585
NODE_OPTIONS: '--max-old-space-size=4096'
8686

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
"start:storybook": "storybook dev -p 6006",
1212
"setup": "lerna run build:i18n && lerna run build:css && lerna run build:css-bundle && lerna run build:version-info && rimraf node_modules/@types/mocha",
1313
"build": "yarn setup && tsc --build tsconfig.build.json && lerna run build:client && lerna run build:wrapper",
14-
"build:storybook": "yarn build && yarn create-cypress-commands-docs && storybook build -o .out && node --experimental-strip-types ./scripts/storybook-search/build-index.ts --directory .out",
14+
"build:sb": "yarn build && yarn create-cypress-commands-docs && storybook build -o .out",
15+
"build:sb-search-index": "node --experimental-strip-types ./scripts/storybook-search/build-index.ts --directory .out",
16+
"build:sb-with-search": "yarn build:sb && yarn build:sb-search-index",
1517
"build:storybook-sitemap": "node ./scripts/create-storybook-sitemap.js --directory .out",
1618
"test:prepare": "rimraf temp && lerna run build",
1719
"test:open": "CYPRESS_COVERAGE=false cypress open --component --browser chrome",
@@ -31,7 +33,7 @@
3133
"create-webcomponents-wrapper": "(cd packages/cli && tsc) && yarn run wrappers:main && yarn run wrappers:fiori && prettier --log-level silent --write ./packages/main/src/webComponents && eslint --fix ./packages/main/src/webComponents/*/index.tsx && yarn run sb:prepare-cem",
3234
"create-webcomponents-wrapper-compat": "(cd packages/cli && tsc) && yarn run wrappers:compat && yarn run sb:prepare-cem && eslint --fix ./packages/compat/src/components/*/index.tsx",
3335
"create-webcomponents-wrapper-ai": "(cd packages/cli && tsc) && yarn run wrappers:ai && yarn run sb:prepare-cem && eslint --fix ./packages/ai/src/components/*/index.tsx",
34-
"chromatic": "cross-env STORYBOOK_ENV=chromatic npx chromatic --build-script-name build:storybook",
36+
"chromatic": "cross-env STORYBOOK_ENV=chromatic npx chromatic --build-script-name build:sb",
3537
"postinstall": "husky && yarn setup",
3638
"create-cypress-commands-docs": "documentation build ./packages/cypress-commands/src/commands.ts -f json -o ./packages/cypress-commands/api-commands.json && documentation build ./packages/cypress-commands/src/queries.ts -f json -o ./packages/cypress-commands/api-queries.json",
3739
"sb:prepare-cem": "node packages/cli/dist/bin/index.js resolve-cem --packageName @ui5/webcomponents --out ./.storybook/custom-element-manifests/main.json && node packages/cli/dist/bin/index.js resolve-cem --packageName @ui5/webcomponents-fiori --out ./.storybook/custom-element-manifests/fiori.json && node packages/cli/dist/bin/index.js resolve-cem --packageName @ui5/webcomponents-ai --out ./.storybook/custom-element-manifests/ai.json",

0 commit comments

Comments
 (0)