-
-
Notifications
You must be signed in to change notification settings - Fork 227
42 lines (35 loc) · 991 Bytes
/
storybook.yml
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
name: Publish stories if changed
on:
push:
branches:
- main
paths:
- stories/**
- components/**
workflow_call:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: "☁️ checkout repository"
uses: actions/checkout@v2
- name: "🔧 setup node"
uses: actions/[email protected]
with:
node-version: 18
- name: "🔧 install npm@latest"
run: npm i -g npm@latest
- name: "📦 install dependencies"
uses: bahmutov/npm-install@v1
- name: "📦 build Storybook"
run: npm run build-storybook
- name: "🚀 deploy static"
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: storybook-static
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./storybook-static
commit_message: ${{ github.event.head_commit.message }}
enable_jekyll: false