Skip to content

cd: deploy storybook to github pages #4

cd: deploy storybook to github pages

cd: deploy storybook to github pages #4

name: Deploy Storybook to Github Pages
on:
push:
branches:
- "main" # change to the branch you wish to deploy from
permissions:
contents: read
pages: write
id-token: write
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Deploy
id: build-publish
uses: bitovi/[email protected]
with:
build_command: pnpm install && pnpm run build-storybook