diff --git a/.github/workflows/deploy-fleet-website.yml b/.github/workflows/deploy-fleet-website.yml index 5af6d5319a..965eb13a57 100644 --- a/.github/workflows/deploy-fleet-website.yml +++ b/.github/workflows/deploy-fleet-website.yml @@ -51,6 +51,9 @@ jobs: with: node-version: ${{ matrix.node-version }} + # Build storybook in the website's assets/ folder + - run: 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 @@ -67,9 +70,6 @@ jobs: # > script here. For more info, see: https://github.com/fleetdm/fleet/pull/5549 - run: rm -f .gitignore - # build storybook in the website's assets/ folder - - run: npm run build-storybook -- -o ./website/assets/storybook --loglevel verbose - # Download dependencies (including dev deps) - run: cd website/ && npm install