From 5d9d5ca717f530fbc3715bb310d91b8f98290fe2 Mon Sep 17 00:00:00 2001 From: Ehsan Heydari <19144304+ehsan-github@users.noreply.github.com> Date: Wed, 21 Feb 2024 18:52:52 +0100 Subject: [PATCH] fix(storybook-deployments): Lets use storybook official documentation for github actions (#584) * Lets use storybook official documentation for github actions * Maybe works after pr merged --- .github/workflows/ci.yml | 23 +++++------------------ 1 file changed, 5 insertions(+), 18 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 37a15cede..c804a1412 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,9 +18,6 @@ concurrency: jobs: build-and-deploy-storybook: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - name: Checkout 🗒️ @@ -52,19 +49,9 @@ jobs: restore-keys: | ${{ runner.os }}-pnpm-store- - - name: Install dependencies - run: pnpm install - - - run: NODE_OPTIONS=--max_old_space_size=4096 pnpm run build-storybook - - - name: Setup Pages - uses: actions/configure-pages@v4 - - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + - uses: bitovi/github-actions-storybook-to-github-pages@v1.0.1 with: - path: './storybook-static' - - - name: Deploy to GitHub Pages 🚀 - id: deployment - uses: actions/deploy-pages@v4 + install_command: pnpm install + build_command: NODE_OPTIONS=--max_old_space_size=4096 pnpm run build-storybook + path: storybook-static + checkout: false