Add Storybook manager and theme configuration #18
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: GitHub Pages deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy-gh-pages: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: 📚 Checkout | |
uses: actions/checkout@v2 | |
- name: 🟢 Setup Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
registry-url: "https://registry.npmjs.org" | |
- name: Install dependencies | |
run: npm install | |
- name: Build Storybook | |
run: npm run storybook:build | |
- name: Deploy to GitHub Pages | |
uses: Cecilapp/GitHub-Pages-deploy@v3 | |
env: | |
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} | |
with: | |
build_dir: storybook-static |