-
Notifications
You must be signed in to change notification settings - Fork 13
49 lines (47 loc) · 1.42 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
45
46
47
48
49
---
# yamllint disable rule:truthy rule:truthy rule:line-length
name: 'Chromatic Publish'
on:
push:
branches:
- bab-deploy-storybook
# - develop
# paths:
# - 'frontend/packages/ui/**'
permissions:
contents: read
jobs:
chromatic:
defaults:
run:
working-directory: ./frontend/packages/ui
name: Run Chromatic
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
fetch-depth: 0 # In order for Chromatic to correctly determine baseline commits, tot access the full Git history graph.
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Install dependencies
run: npm install
- name: Run Chromatic
id: chromatic
uses: chromaui/action@latest
with:
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
workingDir: ./frontend/packages/ui
- name: Outputs Storybook storybookUrl
run: |
echo "Storybook URL: ${{ steps.chromatic.outputs.storybookUrl }}"
- name: Outputs Storybook URL
run: |
echo "Storybook URL: ${{ steps.chromatic.outputs.url }}"
- name: Outputs Storybook buildUrl
run: |
echo "Storybook URL: ${{ steps.chromatic.outputs.buildUrl }}"