Merge pull request #2640 from refugies-info/luis/get-recent-dispositi… #425
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: Chromatic | |
on: | |
push: | |
branches-ignore: | |
- master-mobile | |
- master-frontend | |
- master-backend | |
- staging-mobile | |
- staging-frontend | |
- staging-backend | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: checks | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "22.13.1" | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Install Dependencies | |
run: | | |
pnpm add -g turbo | |
pnpm install --frozen-lockfile | |
- name: Build | |
run: pnpm build:storybook | |
- name: Run Chromatic | |
uses: chromaui/action@latest | |
with: | |
# ⚠️ Make sure to configure a `CHROMATIC_PROJECT_TOKEN` repository secret | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
buildScriptName: build | |
workingDir: apps/storybook | |
skip: "dependabot/**" # 👈 Option to skip Chromatic for certain branches |