Skip to content

Commit

Permalink
docs(Storybook): prevent storybook docs from being crawled
Browse files Browse the repository at this point in the history
  • Loading branch information
dgonzalezr committed Dec 18, 2023
1 parent 285a77b commit 61bbe38
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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-[email protected]
uses: bitovi/github-[email protected]
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
1 change: 1 addition & 0 deletions packages/beeq/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default {
managerHead: (head) => `
${head}
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="robots" content="noindex" />
<link rel="stylesheet" type="text/css" href="css/font.css" />
<link rel="stylesheet" type="text/css" href="css/storybook.css" />
`,
Expand Down

0 comments on commit 61bbe38

Please sign in to comment.