Skip to content

Commit 859602f

Browse files
fix: jekyll (#8)
1 parent d127401 commit 859602f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.github/workflows/storybook.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
- name: Install and Build
2323
run: |
2424
pnpm install
25-
pnpm build-storybook
25+
pnpm storybook:publish
2626
2727
- name: Deploy
2828
uses: JamesIves/[email protected]
2929
with:
3030
branch: gh-pages
31-
folder: storybook-static # output folder from `npm run build-storybook`
31+
folder: storybook-static

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,12 @@
3535
],
3636
"scripts": {
3737
"build": "tsup",
38-
"build-storybook": "storybook build",
3938
"format": "prettier -w src",
4039
"prepare": "husky install",
4140
"publint": "publint",
42-
"storybook": "storybook dev -p 6006"
41+
"storybook": "storybook dev -p 6006",
42+
"storybook:build": "storybook build",
43+
"storybook:publish": "npm run storybook:build && touch ./storybook-static/.nojekyll"
4344
},
4445
"lint-staged": {
4546
"*.{css,js,md,ts,jsx,tsx,ts}": "prettier --write"

0 commit comments

Comments
 (0)