This repository has been archived by the owner on Apr 25, 2024. It is now read-only.
Merge pull request #542 from direktiv/juliazielke/dir-1039-file-picke… #622
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Publish Storybook to Chromatic" | |
on: | |
push: | |
branches: ["main"] | |
jobs: | |
build: | |
name: Build and test design system | |
runs-on: ubuntu-latest | |
# Job steps | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # chromatic needs all commits | |
- name: Install dependencies | |
run: yarn | |
- name: Publish to Chromatic | |
uses: chromaui/action@v1 | |
with: | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
buildScriptName: storybook:build |