Skip to content

refactor: implement Markdown ↔ PortableText conversion and add tests … #241

refactor: implement Markdown ↔ PortableText conversion and add tests …

refactor: implement Markdown ↔ PortableText conversion and add tests … #241

Workflow file for this run

name: Chromatic
on:
pull_request:
branches: ['**']
push:
branches: ['main']
jobs:
chromatic:
name: Visual Regression Tests
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # ratchet:actions/checkout@v4
with:
fetch-depth: 0 # Required for Chromatic to detect changes
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # ratchet:actions/setup-node@v4
with:
node-version: '24'
- name: Setup pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # ratchet:pnpm/action-setup@v4
with:
version: 10.24.0
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # ratchet:actions/cache@v4
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Initialize MSW
run: pnpm msw init public --save=false
- name: Publish to Chromatic
uses: chromaui/action@f191a0224b10e1a38b2091cefb7b7a2337009116 # ratchet:chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
buildScriptName: build-storybook
onlyChanged: true
autoAcceptChanges: main
exitOnceUploaded: true