mirror of
https://github.com/gotson/komga.git
synced 2026-04-19 13:31:15 +02:00
46 lines
1.1 KiB
YAML
46 lines
1.1 KiB
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: i18n:compile
|
|
working-directory: next-ui
|
|
run: npm run i18n:compile
|
|
|
|
- name: Run Chromatic
|
|
id: chromatic
|
|
uses: chromaui/action@latest
|
|
with:
|
|
workingDir: next-ui
|
|
exitOnceUploaded: true
|
|
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
|
|
autoAcceptChanges: 'next-ui'
|
|
skip: 'dependabot/**'
|
|
|
|
- name: Summary
|
|
run: |
|
|
echo "Chromatic:" >> $GITHUB_STEP_SUMMARY
|
|
echo "- [Build](${{ steps.chromatic.outputs.buildUrl }})" >> $GITHUB_STEP_SUMMARY
|
|
echo "- [Storybook](${{ steps.chromatic.outputs.storybookUrl }})" >> $GITHUB_STEP_SUMMARY
|