Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ jobs:
run: pnpm install

- name: Build 🛠
run: pnpm docs:build
# The libraries have to be built first: the storybook resolves
# @commercelayer/core-components to its dist, which does not exist on a
# clean checkout.
run: pnpm build && pnpm docs:build

- name: Setup Pages 🧰
uses: actions/configure-pages@v4
Expand Down
8 changes: 7 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@

[build]
base = "/"
command = "pnpm docs:build"
# The libraries must be built before the storybook. Its Vite config aliases
# @commercelayer/react-components straight to source, but that source imports
# @commercelayer/core-components, which is a workspace package resolving to
# ./dist/index.js — absent on a clean checkout, so rolldown fails to resolve
# it. Locally the storybook builds without this only because dist/ is already
# lying around from a previous build.
command = "pnpm build && pnpm docs:build"
publish = "packages/docs/storybook-static"

[build.environment]
Expand Down
Loading