-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (41 loc) · 1.19 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: 'Chromatic Publish'
# Event for the workflow
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- master
# Replace pull_request with pull_request_target if you
# plan to use this action with forks, see the Limitations section
pull_request:
# List of jobs
jobs:
publish-storybook:
# Operating System
runs-on: ubuntu-latest
# Job steps
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Generate env file
run: cp .env.docker .env
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Node.js dependencies Management UI
run: npm ci
- name: Install Node.js dependencies Documentation
run: npm ci
working-directory: documentation
- uses: chromaui/action@v1
# Options required for Chromatic's GitHub Action
with:
workingDir: documentation
#👇 Chromatic projectToken,
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}