Skip to content

Merge pull request #65 from iamchathu/renovate/zizmorcore-zizmor-acti… #29

Merge pull request #65 from iamchathu/renovate/zizmorcore-zizmor-acti…

Merge pull request #65 from iamchathu/renovate/zizmorcore-zizmor-acti… #29

# Workflow name
name: Build and Publish Storybook to GitHub Pages
on:
# Event for the workflow to run on
push:
branches:
- 'master' # Replace with the branch you want to deploy from
permissions:
contents: read
pages: write
id-token: write
# List of jobs
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.build-publish.outputs.page_url }}
# Job steps
steps:
# Manual Checkout
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false
# Install pnpm
- name: Install pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
with:
version: 10
# Set up Node
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
with:
node-version: '24'
cache: 'pnpm'
#👇 Add Storybook build and deploy to GitHub Pages as a step in the workflow
- uses: bitovi/github-actions-storybook-to-github-pages@ddd9d35f670cceedd2bfc444be681001b0709730 # v1.0.4
id: build-publish
with:
install_command: pnpm install
build_command: pnpm build-storybook
path: storybook-static
checkout: false