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

set fetch-depth in chromatic deploy workflow #9

set fetch-depth in chromatic deploy workflow

set fetch-depth in chromatic deploy workflow #9

name: Deploy to Storybook to Chromatic
on: [push]
jobs:
chromatic-deployment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- 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 }}