Skip to content

Add workflow_dispatch to Chromatic workflow for manual triggering #2406

Add workflow_dispatch to Chromatic workflow for manual triggering

Add workflow_dispatch to Chromatic workflow for manual triggering #2406

Workflow file for this run

name: "Chromatic"
on:
push:
workflow_dispatch: # Allows manual triggering from GitHub UI
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build Storybook
run: yarn build-storybook
- name: Deploy to Chromatic
run: yarn chromatic --exit-zero-on-changes
env:
CHROMATIC_PROJECT_TOKEN: 5981upe4q43