Skip to content

Commit 570132d

Browse files
ci: add github action for storybook (#6)
1 parent 0e3d82e commit 570132d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/storybook.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Storybook
2+
on:
3+
push:
4+
branches:
5+
- main # if any push happens on branch `main`, run this workflow. You could also add `paths` to detect changes in specific folder
6+
7+
jobs:
8+
build-and-deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/[email protected]
13+
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 18
17+
18+
- uses: pnpm/action-setup@v2
19+
with:
20+
version: 8
21+
22+
- name: Install and Build
23+
run: |
24+
pnpm
25+
pnpm build-storybook
26+
27+
- name: Deploy
28+
uses: JamesIves/[email protected]
29+
with:
30+
branch: gh-pages
31+
folder: storybook-static # output folder from `npm run build-storybook`

0 commit comments

Comments
 (0)