We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 191f5df + ad4b2f4 commit ed71e42Copy full SHA for ed71e42
1 file changed
.github/workflows/storybook-publish.yml
@@ -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
18
+ version: 9
19
20
+ - uses: actions/setup-node@v4
21
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
34
+ projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
35
+ storybookBuildDir: storybook-static
0 commit comments