generated from bcgov/EPIC.scaffold
-
Notifications
You must be signed in to change notification settings - Fork 7
43 lines (41 loc) · 1.17 KB
/
chromatic.yml
File metadata and controls
43 lines (41 loc) · 1.17 KB
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
# Workflow name
name: "Chromatic Publish"
# Event for the workflow
on:
push:
branches:
- develop
paths-ignore:
- 'README.md'
- 'LICENSE'
# List of jobs
jobs:
test:
# Operating System
runs-on: ubuntu-latest
# Only run on the main repository (bcgov/EPIC.compliance), not forks
if: github.repository == 'bcgov/EPIC.compliance'
# Job steps
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
cache-dependency-path: "compliance-web/package-lock.json"
- name: Install dependencies
run: npm install
working-directory: compliance-web
- name: Build Storybook
run: npm run build-storybook
working-directory: compliance-web
#👇 Adds Chromatic as a step in the workflow
- uses: chromaui/action@latest
# Options required for Chromatic's GitHub Action
with:
#👇 Chromatic projectToken,
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
workingDir: compliance-web