Skip to content

Fix #593: keep Storybook links from leaving the preview #924

Fix #593: keep Storybook links from leaving the preview

Fix #593: keep Storybook links from leaving the preview #924

Workflow file for this run

name: Deploy PR Preview
on:
pull_request:
types: [opened, synchronize, reopened, closed]
permissions:
contents: write
pull-requests: write
jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
with:
node-version: 26
- name: Install dependencies
if: github.event.action != 'closed'
run: |
corepack enable
yarn install --immutable --immutable-cache
- name: Build Storybook
if: github.event.action != 'closed'
run: yarn build-storybook
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./dist-storybook
preview-branch: gh-pages
umbrella-dir: pr-previews