diff --git a/.github/workflows/verify_storybook-noop.yml b/.github/workflows/verify_chromatic-noop.yml similarity index 90% rename from .github/workflows/verify_storybook-noop.yml rename to .github/workflows/verify_chromatic-noop.yml index 98ce6b26a1..600e8f9bdb 100644 --- a/.github/workflows/verify_storybook-noop.yml +++ b/.github/workflows/verify_chromatic-noop.yml @@ -1,11 +1,11 @@ # NO-OP placeholder that always passes for other paths # This is here so that we're able to set the status check as required -name: Storybook Void +name: Chromatic Void on: pull_request: paths-ignore: - - '.github/workflows/verify_storybook.yml' + - '.github/workflows/verify_chromatic.yml' - 'storybook/**' - 'packages/config/src/**' - 'packages/theme/src/**' @@ -25,7 +25,7 @@ jobs: noop: runs-on: ubuntu-latest - name: Storybook + name: Chromatic steps: - name: Harden Runner uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0 diff --git a/.github/workflows/verify_storybook.yml b/.github/workflows/verify_chromatic.yml similarity index 93% rename from .github/workflows/verify_storybook.yml rename to .github/workflows/verify_chromatic.yml index 7c88a8f82e..86dbe6477c 100644 --- a/.github/workflows/verify_storybook.yml +++ b/.github/workflows/verify_chromatic.yml @@ -1,9 +1,9 @@ -name: Storybook +name: Chromatic on: # NOTE: If you change these you must update verify_storybook-noop.yml as well pull_request: paths: - - '.github/workflows/verify_storybook.yml' + - '.github/workflows/verify_chromatic.yml' - '.storybook/**' - 'packages/ui/src/**' - 'packages/config/src/**' @@ -26,7 +26,7 @@ jobs: os: [ubuntu-latest] node-version: [20.x] - name: Storybook + name: Chromatic steps: - name: Harden Runner uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0 @@ -59,5 +59,5 @@ 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: dist-storybook-chromatic + storybookBuildDir: dist-storybook onlyChanged: true diff --git a/.gitignore b/.gitignore index a4a3ec321b..aaf05b51cd 100644 --- a/.gitignore +++ b/.gitignore @@ -186,5 +186,4 @@ docs.json tsconfig.typedoc.tmp.json # Storybook -dist-storybook/ -dist-storybook-chromatic/ \ No newline at end of file +dist-storybook/ \ No newline at end of file diff --git a/package.json b/package.json index a048db1c60..0f1d16ce41 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ }, "scripts": { "build-storybook": "storybook build --output-dir dist-storybook", - "build-storybook:chromatic": "STORYBOOK_STORY_SET=chromatic storybook build --stats-json --output-dir dist-storybook-chromatic", + "build-storybook:chromatic": "STORYBOOK_STORY_SET=chromatic storybook build --stats-json --output-dir dist-storybook", "build:all": "backstage-cli repo build --all", "build:api-docs": "LANG=en_EN yarn build:api-reports --docs --exclude 'plugins/@(api-docs|api-docs-module-protoc-gen-doc|app-visualizer|catalog-graph|catalog-import|catalog-unprocessed-entities|config-schema|example-todo-list|example-todo-list-backend)'", "build:api-reports": "yarn build:api-reports:only --tsc",