Version 3.9.0 #124
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
# This workflow deploys Storybook to GitHub pages | |
name: Deploy Storybook | |
on: | |
pull_request: | |
branches: | |
- 'main' | |
types: | |
- 'closed' | |
paths: | |
- 'src/**' | |
- 'stories/**' | |
- 'public/**' | |
- 'typings/**' | |
- '.storybook/**' | |
- 'package.json' | |
- 'package-lock.json' | |
jobs: | |
deploy: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18.13.0 | |
- name: Build Storybook | |
run: | | |
npm ci | |
npm run build-storybook | |
env: | |
NODE_OPTIONS: "--max_old_space_size=8192" | |
- name: Deploy Storybook | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs-build | |
user_name: '${{ github.actor }}' | |
user_email: '${{ github.actor }}@users.noreply.github.com' |