mirror of
https://github.com/gotson/komga.git
synced 2026-01-18 06:02:43 +01:00
33 lines
703 B
YAML
33 lines
703 B
YAML
name: Chromatic
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'next-ui'
|
|
|
|
jobs:
|
|
chromatic:
|
|
name: Run Chromatic
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: '.nvmrc'
|
|
cache: 'npm'
|
|
cache-dependency-path: next-ui/package-lock.json
|
|
|
|
- name: npm install
|
|
working-directory: next-ui
|
|
run: npm ci
|
|
|
|
- name: Run Chromatic
|
|
uses: chromaui/action@latest
|
|
with:
|
|
workingDir: next-ui
|
|
exitOnceUploaded: true
|
|
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
|