diff --git a/.github/workflows/storybook-deploy.yml b/.github/workflows/storybook-deploy.yml new file mode 100644 index 00000000..d2861fea --- /dev/null +++ b/.github/workflows/storybook-deploy.yml @@ -0,0 +1,30 @@ +name: Deploy Storybook to GitHub Pages +on: + push: + branches: [main] +jobs: + publish: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + + - uses: pnpm/action-setup@v3 + name: Install pnpm + with: + version: 8 + run_install: true + + - name: Build Storybook + run: pnpm run build-storybook + + - name: Deploy to GitHub Pages + uses: JamesIves/github-pages-deploy-action@v4.5.0 + with: + folder: storybook-static