Skip to content

Commit

Permalink
[website] Fix storybook deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
sim51 committed Apr 3, 2024
1 parent 4caccd5 commit 687b9c1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:
- name: Website
run: npm run website

- name: Copy storybook in website
run: mv -f packages/storybook/storybook-static/ packages/website/build/storybook/

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.2.5
with:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"start": "concurrently -n lint,compile,core,layout-core,layout-circlepack,layout-circular,layout-force,layout-forceatlas2,layout-noverlap,layout-random,storybook,website 'npm run lint -- --watch' 'npm run tsc -- --watch' 'npm run start --workspace=@react-sigma/core' 'npm run start --workspace=@react-sigma/layout-core' 'npm run start --workspace=@react-sigma/layout-circlepack' 'npm run start --workspace=@react-sigma/layout-circular' 'npm run start --workspace=@react-sigma/layout-force' 'npm run start --workspace=@react-sigma/layout-forceatlas2' 'npm run start --workspace=@react-sigma/layout-noverlap' 'npm run start --workspace=@react-sigma/layout-random' 'npm run start --workspace=@react-sigma/storybook' 'npm run start --workspace=@react-sigma/website'",
"test": "npm run test --workspaces --if-present",
"tsc": "tsc -b --preserveWatchOutput",
"website": "npm run build -w @react-sigma/storybook && npm run build -w @react-sigma/website && copyfiles -u 3 packages/storybook/storybook-static/** packages/storybook/storybook-static/**/* packages/website/build/storybook/"
"website": "npm run build -w @react-sigma/storybook && npm run build -w @react-sigma/website"
},
"dependencies": {
"graphology": "^0.25.4",
Expand Down
8 changes: 4 additions & 4 deletions packages/website/docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ const config: Config = {
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/logo.svg",
organizationName: "sim51", // Usually your GitHub org/user name.
projectName: "react-sigma", // Usually your repo name.
organizationName: "sim51",
projectName: "react-sigma",
presets: [
[
"classic",
Expand Down Expand Up @@ -62,7 +62,7 @@ const config: Config = {
position: "right",
},
{
href: "https://github.com/sim51/react-sigma/storybook",
href: "https://sim51.github.io/react-sigma/storybook",
label: "Storybook",
position: "right",
},
Expand Down Expand Up @@ -93,7 +93,7 @@ const config: Config = {
},
{
label: "Storybook",
href: "https://github.com/sim51/react-sigma/storybook",
href: "https://sim51.github.io/react-sigma/storybook",
},
],
},
Expand Down

0 comments on commit 687b9c1

Please sign in to comment.