Skip to content

feat: card-people-mentor (#97) #87

feat: card-people-mentor (#97)

feat: card-people-mentor (#97) #87

name: Deploy Storybook
on:
push:
branches: [main]
permissions:
contents: write
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # 👈 Chromatic: required to retrieve git history
- uses: actions/setup-node@v3
with:
node-version: "16"
cache: "yarn"
- name: Install dependencies
run: yarn
- name: Build storybook
run: yarn build-storybook
- name: Deploy Storybook 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: storybook-static # The folder the action should deploy.
- name: Publish to Chromatic
uses: chromaui/action@v1
# Chromatic GitHub Action options
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
storybookBuildDir: storybook-static