Skip to content

Chromantic

Chromantic #2

name: "Publish Chromatic"
on: push
jobs:
chromatic:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
# ⚠️ Pick one of these, matching the package manager for your project
run: npm ci
run: pnpm install

Check failure on line 17 in .github/workflows/deploy-chromatic.yml

View workflow run for this annotation

GitHub Actions / Publish Chromatic

Invalid workflow file

The workflow is not valid. .github/workflows/deploy-chromatic.yml (Line: 17, Col: 9): 'run' is already defined .github/workflows/deploy-chromatic.yml (Line: 18, Col: 9): 'run' is already defined
run: yarn install --immutable --immutable-cache --check-cache
- name: Publish to Chromatic
uses: chromaui/action@latest
with:
# ⚠️ Make sure to configure a `CHROMATIC_PROJECT_TOKEN` repository secret
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}