Skip to content

Merge pull request #22 from saitamau-maximum/fix/header-ui #26

Merge pull request #22 from saitamau-maximum/fix/header-ui

Merge pull request #22 from saitamau-maximum/fix/header-ui #26

Workflow file for this run

name: Preview with 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:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup pnpm
uses: pnpm/action-setup@v2.2.4
with:
version: 8.6.2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Install deps
run: pnpm install --frozen-lockfile --prefer-offline
- name: Create dist dir for vite
run: mkdir dist
working-directory: packages/components
- name: Build
run: pnpm build:storybook
working-directory: packages/components
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./packages/components/storybook-static
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2