-
Notifications
You must be signed in to change notification settings - Fork 20
52 lines (50 loc) · 1.51 KB
/
storybook.yaml
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
50
51
52
name: storybook
on:
pull_request:
paths:
- .github/workflows/storybook.yaml
- .storybook/**
- src/**
- '*.json'
- '*.config.*'
- pnpm-lock.yaml
push:
branches:
- main
paths:
- .github/workflows/storybook.yaml
- .storybook/**
- src/**
- '*.json'
- '*.config.*'
- pnpm-lock.yaml
jobs:
storycap:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .node-version
- run: corepack enable pnpm
- run: pnpm i
- run: pnpm run storycap
- uses: int128/upload-artifact-wiki-action@v1
id: upload-artifact-wiki
with:
path: __screenshots__/**/*.png
- uses: int128/comment-action@v1
with:
update-if-exists: replace
post: |
<table>
<tr>
<td><img src="${{ steps.upload-artifact-wiki.outputs.url }}/__screenshots__/App/component/Primary.png"></td>
<td><img src="${{ steps.upload-artifact-wiki.outputs.url }}/__screenshots__/App/component/Dark.png"></td>
</tr>
<tr>
<td><img src="${{ steps.upload-artifact-wiki.outputs.url }}/__screenshots__/BookmarkEditor/component/Primary.png"></td>
<td><img src="${{ steps.upload-artifact-wiki.outputs.url }}/__screenshots__/Preferences/component/Primary.png"></td>
</tr>
</table>