Skip to content

Commit

Permalink
Lets use storybook official documentation for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-github committed Feb 21, 2024
1 parent 2514f3b commit 486419b
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches:
- dev
pull_request:
branches:
- dev

permissions:
contents: read
Expand All @@ -18,9 +21,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 +52,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

0 comments on commit 486419b

Please sign in to comment.