forked from VOICEVOX/voicevox
-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (30 loc) · 931 Bytes
/
chromatic.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Chromaticにmainブランチをpushする
# お試し運用中なので消滅する可能性あり
# TODO: Enable TurboSnap
# https://www.chromatic.com/docs/github-actions/#enable-turbosnap
name: "Chromatic"
on:
push:
branches:
- main
env:
# Chromatic用にNodeのメモリを増やす
# https://github.com/chromaui/chromatic-cli/issues/550#issuecomment-1150713820
NODE_OPTIONS: --max-old-space-size=16384
jobs:
chromatic:
name: Run Chromatic
runs-on: ubuntu-latest
if: github.repository_owner == 'VOICEVOX'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup environment
uses: ./.github/actions/setup-environment
- name: Run Chromatic
uses: chromaui/action@v11
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
buildScriptName: "storybook:build"
exitZeroOnChanges: true