Update storybook workflow #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Storybook | |
on: | |
push: | |
branches: [ main ] # Adjust branch as needed | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 20 # Adjust Node.js version if needed | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: npm install | |
- name: Build Storybook | |
run: npm run build-storybook # Adjust build command if necessary | |
- uses: bitovi/github-actions-storybook-to-github-pages@v1 # Use the action | |
with: | |
output_directory: 'storybook-static' # Adjust output directory if needed |