Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Deploy storybook to Chromatic instead of Pages #1

Deploy storybook to Chromatic instead of Pages

Deploy storybook to Chromatic instead of Pages #1

name: Deploy to Storybook to Chromatic
on:
push:
branches: ['main']
tags:
- 'v*'
jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up pnpm
uses: pnpm/action-setup@v2
with:
version: '^8.6.5'
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'pnpm'
- name: Install dependencies
run: pnpm i
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}