fix: run sphinx-autobuild on port 8003 #69
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Storybook" | |
on: push | |
jobs: | |
chromatic: | |
name: Run Chromatic | |
runs-on: ubuntu-latest | |
environment: storybook | |
strategy: | |
matrix: | |
node-version: [ 20 ] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install | |
- name: Run Chromatic | |
uses: chromaui/action@latest | |
with: | |
# ⚠️ `CHROMATIC_PROJECT_TOKEN` is an environment secret in `storybook` environment | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
exitZeroOnChanges: true # 👈 Option to prevent the workflow from failing if there are visual changes |