From 61bbe38ea2622387e8dadc5cef0da71507743635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dabiel=20Gonz=C3=A1lez=20Ramos?= Date: Mon, 18 Dec 2023 20:26:49 +0200 Subject: [PATCH] docs(Storybook): prevent storybook docs from being crawled --- .github/workflows/deploy.yml | 19 ++++++++++--------- packages/beeq/.storybook/main.ts | 1 + 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 6e14bf298..b03b8ffe6 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -8,6 +8,11 @@ env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} +permissions: + contents: read + pages: write + id-token: write + jobs: main: name: 📘 Deploy Storybook to GitHub Pages @@ -31,14 +36,10 @@ jobs: - name: 💫 Load and cache dependencies uses: ./.github/actions/cache-deps - - name: ⏳ Build - run: npm run build - shell: bash - - name: 🚚 Deploy to GitHub Pages - uses: JamesIves/github-pages-deploy-action@v4.5.0 + uses: bitovi/github-actions-storybook-to-github-pages@v1.0.2 with: - branch: storybook - folder: ./dist/storybook/beeq - clean: true - token: ${{ secrets.GITHUB_TOKEN }} + checkout: false + path: ./dist/storybook/beeq + install_command: npm i + build_command: npm run build --skip-nx-cache diff --git a/packages/beeq/.storybook/main.ts b/packages/beeq/.storybook/main.ts index 3e77da12a..1abae8506 100644 --- a/packages/beeq/.storybook/main.ts +++ b/packages/beeq/.storybook/main.ts @@ -39,6 +39,7 @@ export default { managerHead: (head) => ` ${head} + `,