Skip to content

Configured Chromatic #2

Configured Chromatic

Configured Chromatic #2

Workflow file for this run

# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Storybook to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allow one concurrent deployment
concurrency:
group: "chromatic"
cancel-in-progress: true
jobs:
# Build job
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup NodeJs
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install Dependencies
run: npm install
- name: Refresh Types
run: npm run refreshTypes
- name: Publish to Chromatic
uses: chromaui/action@v1
# Chromatic GitHub Action options
with:
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}