Skip to content

Commit ed71e42

Browse files
authored
Merge pull request #27 from SigNoz/chore/publish-storybook
feat: add GitHub Actions workflow to publish Storybook to Chromatic o…
2 parents 191f5df + ad4b2f4 commit ed71e42

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Publish Storybook
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
7+
jobs:
8+
publish:
9+
name: Publish to Chromatic
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
16+
- uses: pnpm/action-setup@v4
17+
with:
18+
version: 9
19+
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: "20"
23+
cache: "pnpm"
24+
25+
- name: Install dependencies
26+
run: pnpm install --frozen-lockfile
27+
28+
- name: Build Storybook
29+
run: pnpm run build-storybook
30+
31+
- name: Publish Storybook to Chromatic
32+
uses: chromaui/action@latest
33+
with:
34+
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
35+
storybookBuildDir: storybook-static

0 commit comments

Comments
 (0)