-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (41 loc) · 1 KB
/
deployment-storybook.yml
File metadata and controls
43 lines (41 loc) · 1 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
name: "⬆️ Push: Storybook"
on:
pull_request:
paths:
- "src/**"
- ".storybook/**"
- "index.ts"
- yarn.lock
push:
branches:
- "develop"
paths:
- "src/**"
- ".storybook/**"
- "index.ts"
- yarn.lock
jobs:
chromatic-deployment:
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' }}
steps:
- uses: actions/checkout@main
with:
fetch-depth: 0
- uses: actions/setup-node@main
with:
node-version: "18"
- name: Install dependencies
run: yarn install
- name: Create jest results
run: yarn test:generate-output
- name: Publish to Chromatic
uses: chromaui/action@v13
with:
token: ${{ secrets.GITHUB_TOKEN }}
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
exitZeroOnChanges: true
onlyChanged: true
traceChanged: "expanded"
exitOnceUploaded: true
externals: "*.scss"