Skip to content

Commit 7b0aa23

Browse files
authored
[chore] : create chromatic.yml
1 parent 164f2be commit 7b0aa23

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/chromatic.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: 'Chromatic Deployment'
2+
3+
on:
4+
push:
5+
branches:
6+
- dev
7+
paths:
8+
- 'src/stories/**'
9+
- '.storybook/**'
10+
- 'package.json'
11+
- 'pnpm-lock.yaml'
12+
13+
jobs:
14+
chromatic:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Enable pnpm
22+
run: corepack enable && corepack prepare pnpm@8.15.4 --activate
23+
24+
- name: Install dependencies
25+
run: pnpm install
26+
27+
- uses: chromaui/action@latest
28+
with:
29+
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
30+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)