Skip to content

Add Fixed Width Columns story to demonstrate custom column widths in … #49

Add Fixed Width Columns story to demonstrate custom column widths in …

Add Fixed Width Columns story to demonstrate custom column widths in … #49

# Build and deploy Storybook to GitHub Pages
# https://storybook.js.org/docs/react/sharing/publish-storybook#github-pages
name: Deploy Storybook to GitHub Pages
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build Storybook
env:
# Base path for GitHub Pages: https://<owner>.github.io/<repo>/
STORYBOOK_BASE_PATH: /${{ github.event.repository.name }}/
run: npm run build-storybook
- name: Upload Storybook artifact
uses: actions/upload-pages-artifact@v3
with:
path: storybook-static
- name: Deploy to GitHub Pages
id: deploy
uses: actions/deploy-pages@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}