From f9bbd47381e3af07f9aabefe403e85e747341eb4 Mon Sep 17 00:00:00 2001 From: Gabriel Hernandez Date: Thu, 13 Jul 2023 17:44:41 +0100 Subject: [PATCH] add back public storybook site build step (#12746) this adds back building and publishing of storybook website. --- .github/workflows/deploy-fleet-website.yml | 3 +++ website/.eslintignore | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-fleet-website.yml b/.github/workflows/deploy-fleet-website.yml index 0b5e657a0f..434971e9b6 100644 --- a/.github/workflows/deploy-fleet-website.yml +++ b/.github/workflows/deploy-fleet-website.yml @@ -58,6 +58,9 @@ jobs: with: go-version: 1.19 + # Download top-level dependencies and build Storybook in the website's assets/ folder + - run: npm install && npm run build-storybook -- -o ./website/assets/storybook --loglevel verbose + # Now start building! # > …but first, get a little crazy for a sec and delete the top-level package.json file # > i.e. the one used by the Fleet server. This is because require() in node will go diff --git a/website/.eslintignore b/website/.eslintignore index f190c2ae4f..eda7786697 100644 --- a/website/.eslintignore +++ b/website/.eslintignore @@ -1,3 +1,3 @@ assets/dependencies/**/*.js views/**/*.ejs - +assets/storybook/*