-
-
Notifications
You must be signed in to change notification settings - Fork 31
34 lines (29 loc) · 1.04 KB
/
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 Deployment'
on:
push:
branches:
- main # Adjust this if your main branch has a different name
# pull_request: # No need for PRs for now
# branches:
# - main # Adjust this if your main branch has a different name
jobs:
chromatic-deployment:
# To run only on the main repository and not forks
if: github.repository == 'rad-ui/ui'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Required for Chromatic to retrieve git history
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18' # Adjust this to your project's Node.js version
- 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