Skip to content

Commit

Permalink
fix(storybook-deployments): Lets use storybook official documentation…
Browse files Browse the repository at this point in the history
… for github actions (#584)

* Lets use storybook official documentation for github actions

* Maybe works after pr merged
  • Loading branch information
ehsan-github authored Feb 21, 2024
1 parent 2514f3b commit 5d9d5ca
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 🗒️
Expand Down Expand Up @@ -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/[email protected]
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

0 comments on commit 5d9d5ca

Please sign in to comment.