forked from rad-ui/ui
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 1017 Bytes
/
Copy pathchromatic.yml
File metadata and controls
36 lines (31 loc) · 1017 Bytes
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
36
name: 'Chromatic Deployment'
on:
push:
branches:
- main
paths:
- 'src/**'
- 'styles/**'
pull_request:
types: [labeled]
jobs:
chromatic-deployment:
# Run on main repo pushes or when PR has "deploy-storybook" label
if: github.repository == 'rad-ui/ui' && (github.event_name == 'push' || github.event.label.name == 'deploy-storybook')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0 # Required for Chromatic to retrieve git history
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
- name: Install dependencies
run: npm ci # Use 'yarn install --frozen-lockfile' if you use Yarn
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
# Optional: Add any additional Chromatic CLI flags here
# For example: --exit-zero-on-changes