mirror of
https://github.com/gotson/komga.git
synced 2025-12-15 13:05:57 +01:00
ci: chromatic
This commit is contained in:
parent
e4af5b553e
commit
56dd7bd2ec
1 changed files with 32 additions and 0 deletions
32
.github/workflows/chromatic.yml
vendored
Normal file
32
.github/workflows/chromatic.yml
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
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
|
||||
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
|
||||
Loading…
Reference in a new issue