Skip to content

Commit c67696e

Browse files
committed
storybook workflows
1 parent 185450e commit c67696e

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/storybook.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Build and Publish Storybook to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main' # Change this to your main branch name if different
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
jobs:
14+
deploy:
15+
environment:
16+
name: github-pages
17+
url: ${{ steps.build-publish.outputs.page_url }}
18+
runs-on: ubuntu-latest
19+
steps:
20+
- id: build-publish
21+
uses: bitovi/[email protected]
22+
with:
23+
# Adjust these settings based on your project setup
24+
path: storybook-static # Output folder from the build-storybook command
25+
install_command: npm install # or yarn install
26+
build_command: npm run build-storybook # or yarn build-storybook

0 commit comments

Comments
 (0)