Skip to content

feat: update version #20

feat: update version

feat: update version #20

name: Deploy Storybook to GitHub Pages
on:
push:
branches: [master, main]
pull_request:
branches: [master, main]
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: 'pages'
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max_old_space_size=4096
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'yarn'
- name: Install dependencies
run: yarn install --immutable
- name: Install Playwright browsers
run: |
npx playwright install
- name: Install turbo
run: |
npm install -g turbo
- name: Build Storybook
run: |
cd apps/storybook
turbo run build
ls -la storybook-static/
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./apps/storybook/storybook-static
deploy:
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
needs: build
steps:
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4