From ac0f040de47cfb3e1f4c9ff28e8844bb0535bdf4 Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Fri, 1 Mar 2024 20:59:09 +0100 Subject: [PATCH] Use other action. --- .github/workflows/deploy-storybook.yml | 15 +++------------ package.json | 4 ++-- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deploy-storybook.yml b/.github/workflows/deploy-storybook.yml index af5be08..ebcfab0 100644 --- a/.github/workflows/deploy-storybook.yml +++ b/.github/workflows/deploy-storybook.yml @@ -29,16 +29,7 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Setup Pages - uses: actions/configure-pages@v3 - - run: npm ci - - run: npm run storybook:build - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + - id: build-publish + uses: bitovi/github-actions-storybook-to-github-pages@v1.0.2 with: - path: './storybook-static' - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v2 + path: ./storybook-static diff --git a/package.json b/package.json index e8c0b81..d733655 100644 --- a/package.json +++ b/package.json @@ -14,8 +14,8 @@ "prettier:check": "prettier --check . --cache --cache-strategy=content --cache-location=.prettiercache", "type-check": "tsc --noEmit", "format": "npm run lint:js -- --fix && npm run lint:css -- --fix && npm run prettier", - "storybook": "BUILD_ENV=storybook storybook dev -p 6006 --quiet --no-open", - "storybook:build": "BUILD_ENV=storybook storybook build", + "storybook": "cross-env BUILD_ENV=storybook storybook dev -p 6006 --quiet --no-open", + "storybook:build": "cross-env BUILD_ENV=storybook storybook build", "test": "vitest" }, "dependencies": {