Skip to content

Merge branch 'chore/chainweb-stream-client-change-default-export' of … #356

Merge branch 'chore/chainweb-stream-client-change-default-export' of …

Merge branch 'chore/chainweb-stream-client-change-default-export' of … #356

name: Chromatic for react ui
# All pull requests, and
# Workflow dispatch allows you to run this workflow manually from the Actions tab
on:
push:
paths:
- packages/libs/react-ui/**
jobs:
chromatic:
name: Visual Regression Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # 👈 Required to retrieve git history, needed to determine diffs.
show-progress: false
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build @kadena/react-ui
run: pnpm build --filter @kadena/react-ui
- name: Publish Storybook
uses: chromaui/action@v1
with:
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
exitOnceUploaded: true
buildScriptName: 'build:storybook'
projectToken: ${{ secrets.REACT_UI_CHROMATIC_TOKEN }}
workingDir: /packages/libs/react-ui
autoAcceptChanges: 'main'