From 2b890f5fc71f153e0523e655d614e5fa86145530 Mon Sep 17 00:00:00 2001 From: Shaunak Date: Sat, 22 Feb 2025 21:02:12 +0530 Subject: [PATCH] modify storybook outpath --- .github/workflows/build-storybook.yml | 21 +-------------------- libs/ui/project.json | 4 ++-- package.json | 2 +- 3 files changed, 4 insertions(+), 23 deletions(-) diff --git a/.github/workflows/build-storybook.yml b/.github/workflows/build-storybook.yml index 2bb650a35..2a29d2c58 100644 --- a/.github/workflows/build-storybook.yml +++ b/.github/workflows/build-storybook.yml @@ -29,23 +29,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: storybook - path: dist/storybook/ui - - deploy: - needs: build - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - - name: Download built Storybook - uses: actions/download-artifact@v4 - with: - name: storybook - path: dist/storybook/ui - - - name: Deploy to GitHub Pages - uses: JamesIves/github-pages-deploy-action@v4 - with: - branch: gh-pages - folder: dist/storybook/ui + path: dist/storybook diff --git a/libs/ui/project.json b/libs/ui/project.json index 1b3f0e4e7..403c3d948 100644 --- a/libs/ui/project.json +++ b/libs/ui/project.json @@ -41,7 +41,7 @@ "executor": "@storybook/angular:build-storybook", "outputs": ["{options.outputDir}"], "options": { - "outputDir": "dist/storybook/ui", + "outputDir": "dist/storybook", "configDir": "libs/ui/.storybook", "browserTarget": "ui:build-storybook", "compodoc": false, @@ -61,7 +61,7 @@ "executor": "@nx/web:file-server", "options": { "buildTarget": "ui:build-storybook", - "staticFilePath": "dist/storybook/ui" + "staticFilePath": "dist/storybook" }, "configurations": { "ci": { diff --git a/package.json b/package.json index a97178081..4b33b4192 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,7 @@ "affected:test": "nx affected:test", "analyze:client": "nx run client:build:production --stats-json && webpack-bundle-analyzer -p 1234 dist/apps/client/en/stats.json", "angular": "node --max_old_space_size=32768 ./node_modules/@angular/cli/bin/ng", - "build:production": "nx run api:copy-assets && nx run api:build:production && nx run client:copy-assets && nx run client:build:production && npm run replace-placeholders-in-build", + "build:production": "nx run api:copy-assets && nx run api:build:production && nx run client:copy-assets && nx run client:build:production && npm run replace-placeholders-in-build && nx run ui:build-storybook", "build:storybook": "nx run ui:build-storybook", "database:format-schema": "prisma format", "database:generate-typings": "prisma generate",