0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00
posthog/.github/workflows/storybook-chromatic.yml

23 lines
797 B
YAML
Raw Normal View History

name: 'Storybook Chromatic'
2021-10-14 20:03:47 +02:00
on: pull_request
jobs:
storybook-chromatic:
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name == github.repository
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # 👈 Required to retrieve git history (https://www.chromatic.com/docs/github-actions)
2021-10-14 20:03:47 +02:00
- name: Install dependencies and chromatic
run: yarn add --dev chromatic
2021-10-14 20:03:47 +02:00
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}