From 770918de5bccbbd75c410689a176d8c400c35c88 Mon Sep 17 00:00:00 2001 From: Charles de Dreuille Date: Thu, 14 Aug 2025 11:30:24 +0200 Subject: [PATCH] Change output path for Storybook Signed-off-by: Charles de Dreuille --- .github/workflows/deploy_microsite.yml | 2 +- .github/workflows/verify_microsite.yml | 2 +- .github/workflows/verify_storybook.yml | 2 +- .gitignore | 2 +- package.json | 2 +- packages/ui/src/components/Table/Table.stories.tsx | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy_microsite.yml b/.github/workflows/deploy_microsite.yml index d82e58a1f8..cf596fde4b 100644 --- a/.github/workflows/deploy_microsite.yml +++ b/.github/workflows/deploy_microsite.yml @@ -199,7 +199,7 @@ jobs: uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 with: name: storybook - path: storybook-static + path: dist-storybook if-no-files-found: error retention-days: 1 diff --git a/.github/workflows/verify_microsite.yml b/.github/workflows/verify_microsite.yml index 4ff8e065b4..df72927514 100644 --- a/.github/workflows/verify_microsite.yml +++ b/.github/workflows/verify_microsite.yml @@ -199,7 +199,7 @@ jobs: uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4 with: name: storybook - path: storybook-static + path: dist-storybook if-no-files-found: error retention-days: 1 diff --git a/.github/workflows/verify_storybook.yml b/.github/workflows/verify_storybook.yml index 665fe0e894..5a71caba85 100644 --- a/.github/workflows/verify_storybook.yml +++ b/.github/workflows/verify_storybook.yml @@ -59,4 +59,4 @@ jobs: # projectToken intentionally shared to allow collaborators to run Chromatic on forks # https://www.chromatic.com/docs/custom-ci-provider#run-chromatic-on-external-forks-of-open-source-projects projectToken: chpt_dab72dc0f97d55b - storybookBuildDir: storybook-static + storybookBuildDir: dist-storybook diff --git a/.gitignore b/.gitignore index b6c0804d50..aaf05b51cd 100644 --- a/.gitignore +++ b/.gitignore @@ -186,4 +186,4 @@ docs.json tsconfig.typedoc.tmp.json # Storybook -storybook-static/ \ No newline at end of file +dist-storybook/ \ No newline at end of file diff --git a/package.json b/package.json index 4e299cbb8f..24c7fa1057 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ ] }, "scripts": { - "build-storybook": "storybook build --output-dir storybook-static", + "build-storybook": "storybook build --output-dir dist-storybook", "build:all": "backstage-cli repo build --all", "build:api-docs": "LANG=en_EN yarn build:api-reports --docs --exclude 'plugins/@(adr|adr-backend|adr-common|airbrake|airbrake-backend|allure|analytics-module-ga|analytics-module-ga4|analytics-module-newrelic-browser|apache-airflow|api-docs|api-docs-module-protoc-gen-doc|apollo-explorer|app-visualizer|azure-devops|azure-devops-backend|azure-devops-common|azure-sites|azure-sites-backend|azure-sites-common|badges|badges-backend|bazaar|bazaar-backend|bitbucket-cloud-common|bitrise|catalog-graph|catalog-graphql|catalog-import|catalog-unprocessed-entities|cicd-statistics|cicd-statistics-module-gitlab|circleci|cloudbuild|code-climate|code-coverage|code-coverage-backend|codescene|config-schema|cost-insights|cost-insights-common|dynatrace|entity-feedback|entity-feedback-backend|entity-feedback-common|entity-validation|example-todo-list|example-todo-list-backend|example-todo-list-common|firehydrant|fossa|gcalendar|gcp-projects|git-release-manager|github-actions|github-deployments|github-issues|github-pull-requests-board|gitops-profiles|gocd|graphiql|graphql-backend|graphql-voyager|ilert|jenkins|jenkins-backend|jenkins-common|kafka|kafka-backend|lighthouse|lighthouse-backend|lighthouse-common|linguist|linguist-backend|linguist-common|microsoft-calendar|newrelic|newrelic-dashboard|nomad|nomad-backend|octopus-deploy|opencost|pagerduty|periskop|periskop-backend|playlist|playlist-backend|playlist-common|proxy-backend|puppetdb|rollbar|rollbar-backend|sentry|shortcuts|splunk-on-call|stack-overflow|stack-overflow-backend|stackstorm|tech-radar|tech-radar-2|todo|todo-backend|xcmetrics)'", "build:api-reports": "yarn build:api-reports:only --tsc", diff --git a/packages/ui/src/components/Table/Table.stories.tsx b/packages/ui/src/components/Table/Table.stories.tsx index 94a703db59..903caba25d 100644 --- a/packages/ui/src/components/Table/Table.stories.tsx +++ b/packages/ui/src/components/Table/Table.stories.tsx @@ -47,7 +47,7 @@ const meta = { // Added this fix to fix Chromatic timeout error. This bug is due to rerendering the table with too many rows. // Work in progress to fix it here - https://github.com/backstage/backstage/pull/30687 -const data1 = data1Raw.slice(0, 25); +const data1 = data1Raw.slice(0, 10); export default meta; type Story = StoryObj;