Update Storybook (via GitHub Pages) #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update Storybook (via GitHub Pages) | |
| on: workflow_dispatch | |
| env: | |
| NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| jobs: | |
| main: | |
| name: 📘 Storybook deploy | |
| runs-on: ubuntu-latest | |
| env: | |
| NX_BRANCH: ${{ github.head_ref || github.ref_name }} | |
| VOLTA_FEATURE_PNPM: 1 | |
| steps: | |
| - name: 🛎 Checkout | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: 🛠 Setup Volta | |
| uses: volta-cli/action@v4 | |
| - name: 🔎 Check Node and PNPM versions | |
| run: | | |
| node --version | |
| pnpm --version | |
| - name: 💫 Load and cache dependencies | |
| uses: ./.github/actions/cache-deps | |
| - name: 🚚 Deploy BEEQ Storybook to GitHub Pages | |
| uses: bitovi/github-actions-storybook-to-github-pages@v1.0.3 | |
| with: | |
| build_command: pnpm build:storybook | |
| checkout: false | |
| install_command: pnpm install --frozen-lockfile | |
| path: ./dist/storybook/beeq |