Merge pull request #3 from YannBirba/renovate/lucide-react-0.x #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Publish Storybook to GitHub Pages | |
on: | |
push: | |
branches: | |
- 'main' # Replace with the branch you want to deploy from | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the repository | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
# Set up Node | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
# Install pnpm | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
# Install dependencies | |
- name: Install dependencies | |
run: | | |
cd example | |
pnpm install --frozen-lockfile | |
# Build Storybook | |
- name: Build Storybook | |
run: | | |
cd example | |
pnpm build | |
# List files in the build directory for debugging | |
- name: List build directory contents | |
run: | | |
cd example | |
ls -la storybook-static | |
# Deploy to GitHub Pages | |
- name: Deploy to GitHub Pages | |
uses: bitovi/[email protected] | |
with: | |
path: example/storybook-static | |
install_command: '' # Skip the install step | |
build_command: '' # Skip the build step | |
checkout: false |