forked from KaotoIO/kaoto
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (39 loc) · 1.37 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
35
36
37
38
39
40
41
42
43
44
# .github/workflows/chromatic.yml
# Workflow name
name: 📖 Storybook (via Chromatic)
# Event for the workflow
on: push
# List of jobs
jobs:
chromatic-deployment:
if: github.actor != 'renovate[bot]'
# Operating System
runs-on: ubuntu-latest
# Job steps
steps:
- uses: actions/checkout@v4
with:
# 👇 Fetches all Git history so that Chromatic can compare against the previous version
fetch-depth: 0
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
scope: '@kaoto'
- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- name: Install dependencies
# 👇 Install dependencies with the same package manager used in the project (replace it as needed), e.g. yarn, npm, pnpm
run: yarn
# 👇 Adds Chromatic as a step in the workflow
- name: Publish to Chromatic
uses: chromaui/action@v1
# Chromatic GitHub Action options
with:
#👇 Chromatic projectToken, see https://storybook.js.org/tutorials/intro-to-storybook/react/en/deploy/ to obtain it
projectToken: chpt_7a4940aa65b14ab
token: ${{ secrets.GITHUB_TOKEN }}
buildScriptName: build:storybook
workingDir: packages/ui-tests