Skip to content

Merge pull request #670 from rishabhsharma1997/master #74

Merge pull request #670 from rishabhsharma1997/master

Merge pull request #670 from rishabhsharma1997/master #74

name: Deploy Storybook
on:
push:
branches:
- "*"
pull_request:
branches:
- "*"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16, 18, 20]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
- name: Build Storybook
run: |
cd apps/design-system
npm install
npm build-storybook
- name: Deploy Storybook
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./storybook-static