Skip to content

Setting build storybook GitHub actions #5

Setting build storybook GitHub actions

Setting build storybook GitHub actions #5

Workflow file for this run

name: Storybook CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Build Storybook
run: npm run build-storybook
- name: Publish to Chromatic
env:
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
run: npx chromatic --project-token=$CHROMATIC_PROJECT_TOKEN