-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (34 loc) · 968 Bytes
/
storybook.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
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Storybook to Pages
on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# Allow one concurrent deployment
concurrency:
group: "chromatic"
cancel-in-progress: true
jobs:
# Build job
build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup NodeJs
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
- name: Install Dependencies
run: npm install
- name: Refresh Types
run: npm run refreshTypes
- name: Publish to Chromatic
uses: chromaui/action@v1
# Chromatic GitHub Action options
with:
# 👇 Chromatic projectToken, refer to the manage page to obtain it.
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}