From f0bb411573c8496d11d560fa7efe9324015412b2 Mon Sep 17 00:00:00 2001 From: Thomas Hallock Date: Sun, 28 Sep 2025 08:11:50 -0500 Subject: [PATCH] fix: update GitHub Actions to use latest action versions for Storybook deployment --- .github/workflows/deploy-storybook.yml | 8 ++--- apps/web/src/components/GameCard.tsx | 37 ++++++++++++------------ apps/web/src/components/GameSelector.tsx | 6 ++-- 3 files changed, 27 insertions(+), 24 deletions(-) diff --git a/.github/workflows/deploy-storybook.yml b/.github/workflows/deploy-storybook.yml index 119a826a..3e9c39e5 100644 --- a/.github/workflows/deploy-storybook.yml +++ b/.github/workflows/deploy-storybook.yml @@ -44,7 +44,7 @@ jobs: echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV - name: Setup pnpm cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ env.STORE_PATH }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} @@ -173,15 +173,15 @@ jobs: - name: Setup Pages if: github.ref == 'refs/heads/main' - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v4 - name: Upload artifact if: github.ref == 'refs/heads/main' - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: path: ./pages - name: Deploy to GitHub Pages if: github.ref == 'refs/heads/main' id: deployment - uses: actions/deploy-pages@v2 \ No newline at end of file + uses: actions/deploy-pages@v3 \ No newline at end of file diff --git a/apps/web/src/components/GameCard.tsx b/apps/web/src/components/GameCard.tsx index 8b7dfd7e..12f132aa 100644 --- a/apps/web/src/components/GameCard.tsx +++ b/apps/web/src/components/GameCard.tsx @@ -42,7 +42,7 @@ export function GameCard({ className={css({ background: config.gradient || 'white', rounded: variant === 'compact' ? 'xl' : '2xl', - p: variant === 'compact' ? '4' : '8', + p: variant === 'compact' ? '3' : { base: '3', md: '4', lg: '6' }, border: '2px solid', borderColor: available ? config.borderColor || 'blue.200' : 'gray.200', boxShadow: variant === 'compact' @@ -65,11 +65,11 @@ export function GameCard({ {/* Game icon with enhanced styling */}

{variant === 'detailed' ? config.fullName || config.name : config.name}

{variant === 'detailed' && (

- {config.longDescription || config.description} + {config.description}

)} @@ -102,16 +103,16 @@ export function GameCard({
{config.chips.map((chip, index) => ( {Object.entries(GAMES_CONFIG).map(([gameType, config]) => (