-
Notifications
You must be signed in to change notification settings - Fork 94
34 lines (29 loc) · 948 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
name: 'chromatic'
on: push
jobs:
chromatic:
if: ${{ github.actor != 'dependabot[bot]' && github.ref == 'refs/heads/main' || contains(github.event.head_commit.message, '[ci chromatic]') }}
runs-on: ubuntu-latest
env:
CYPRESS_INSTALL_BINARY: 0
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js environment
uses: actions/setup-node@v4.0.2
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Publish to Chromatic
uses: chromaui/action@v10
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
buildScriptName: 'build:storybook'
skip: 'dependabot/**'
env:
STORYBOOK_ENV: chromatic
NODE_OPTIONS: '--max-old-space-size=4096'