From 27085f8a696c4cfd8cf7a6d6072bde18e9201a45 Mon Sep 17 00:00:00 2001 From: Rishabh Anand Date: Mon, 28 Oct 2024 01:53:51 +0530 Subject: [PATCH] update workflow --- .github/workflows/storybook.yml | 8 ++++++++ package.json | 1 + 2 files changed, 9 insertions(+) diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml index 845360e..4d67806 100644 --- a/.github/workflows/storybook.yml +++ b/.github/workflows/storybook.yml @@ -11,7 +11,15 @@ jobs: url: ${{ steps.build-publish.outputs.page_url }} runs-on: ubuntu-latest steps: + + - name: Checkout Repo + uses: actions/checkout@v3 + + - name: Install Dependencies + run: npm run npm-install-storybook + - id: build-publish + name: Publish to GitHub Pages uses: bitovi/github-actions-storybook-to-github-pages@v1.0.0 with: path: test/storybook/dist diff --git a/package.json b/package.json index bd3281f..91a1047 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "scripts": { "test": "cd test/storybook && npm run storybook", "build-storybook": "cd test/storybook && npm run build", + "npm-install-storybook": "cd test/storybook && npm install", "prepublish": "tsc" }, "repository": {