-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 986 Bytes
/
website.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
# .github/workflows/deploy-github-pages.yaml
# Workflow name
name: Publish Storybook to GitHub Pages
on:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
# List of jobs
jobs:
deploy:
runs-on: ubuntu-latest
# Job steps
steps:
# Manual Checkout
- uses: actions/checkout@v4
# Set up Node
- uses: actions/setup-node@v4
with:
node-version: "23.x"
# Install dependencies with pnpm
- name: Install pnpm
run: npm install -g pnpm
#👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
- uses: bitovi/[email protected]
with:
install_command: pnpm install --no-frozen-lockfile # default: npm ci
build_command: pnpm run build-storybook # default: npm run build-storybook
path: storybook-static # default: dist/storybook
checkout: false # default: true