diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index 60e865996..e47dd848e 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -1,10 +1,5 @@ name: "Chromatic Publish (Storybook)" -on: - push: - branches: - - main - jobs: test: runs-on: ubuntu-latest diff --git a/packages/ui/package.json b/packages/ui/package.json index 1e1a40d00..31144bf4f 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -15,7 +15,8 @@ "storybook": "storybook dev -p 6006", "build-storybook": "storybook build", "chromatic": "pnpm chromatic", - "prepublish": "pnpm build" + "prepublish": "pnpm build", + "test:e2e": "concurrently -k -s first -n \"SB,TEST\" -c \"magenta,blue\" \"http-server storybook-static --port 6006 --silent\" \"wait-on http-get://127.0.0.1:6006 -v && pnpm test-storybook\"" }, "devDependencies": { "@storybook/addon-essentials": "^7.5.0",