generated from wood3n/pnpm-monorepo-template
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.15 KB
/
deploy-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
name: Deploy Storybook to GitHub Pages
on:
# Event for the workflow to run on
workflow_dispatch:
push:
branches:
- "master" # Replace with the branch you want to deploy from
paths:
- "packages/components/**"
permissions:
contents: read
pages: write
id-token: write
# List of jobs
jobs:
deploy:
runs-on: ubuntu-latest
# Job steps
steps:
# Manual Checkout
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
# Set up Node
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 18
# Set up pnpm
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 8.15.7
run_install: false
- name: Deploy github pages
uses: bitovi/[email protected]
with:
install_command: pnpm install # default: npm ci
build_command: npx turbo run build-storybook # default: npm run build-storybook
path: packages/components/storybook-static # default: dist/storybook
checkout: false # default: true