fix: update GitHub Actions to use latest action versions for Storybook deployment

This commit is contained in:
Thomas Hallock 2025-09-28 08:11:50 -05:00
parent a994abc624
commit f0bb411573
3 changed files with 27 additions and 24 deletions

View File

@ -44,7 +44,7 @@ jobs:
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache - name: Setup pnpm cache
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: ${{ env.STORE_PATH }} path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
@ -173,15 +173,15 @@ jobs:
- name: Setup Pages - name: Setup Pages
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'
uses: actions/configure-pages@v3 uses: actions/configure-pages@v4
- name: Upload artifact - name: Upload artifact
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v2 uses: actions/upload-pages-artifact@v3
with: with:
path: ./pages path: ./pages
- name: Deploy to GitHub Pages - name: Deploy to GitHub Pages
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'
id: deployment id: deployment
uses: actions/deploy-pages@v2 uses: actions/deploy-pages@v3

View File

@ -42,7 +42,7 @@ export function GameCard({
className={css({ className={css({
background: config.gradient || 'white', background: config.gradient || 'white',
rounded: variant === 'compact' ? 'xl' : '2xl', rounded: variant === 'compact' ? 'xl' : '2xl',
p: variant === 'compact' ? '4' : '8', p: variant === 'compact' ? '3' : { base: '3', md: '4', lg: '6' },
border: '2px solid', border: '2px solid',
borderColor: available ? config.borderColor || 'blue.200' : 'gray.200', borderColor: available ? config.borderColor || 'blue.200' : 'gray.200',
boxShadow: variant === 'compact' boxShadow: variant === 'compact'
@ -65,11 +65,11 @@ export function GameCard({
{/* Game icon with enhanced styling */} {/* Game icon with enhanced styling */}
<div className={css({ <div className={css({
textAlign: 'center', textAlign: 'center',
mb: variant === 'compact' ? '2' : '4' mb: variant === 'compact' ? '1' : { base: '1', md: '2' }
})}> })}>
<div className={css({ <div className={css({
fontSize: variant === 'compact' ? '2xl' : '4xl', fontSize: variant === 'compact' ? 'xl' : { base: 'xl', md: '2xl', lg: '3xl' },
mb: variant === 'compact' ? '2' : '3', mb: variant === 'compact' ? '1' : { base: '1', md: '2' },
display: 'inline-block', display: 'inline-block',
transform: 'perspective(1000px)', transform: 'perspective(1000px)',
transition: 'all 0.3s ease' transition: 'all 0.3s ease'
@ -78,22 +78,23 @@ export function GameCard({
</div> </div>
<h4 className={css({ <h4 className={css({
fontSize: variant === 'compact' ? 'lg' : '2xl', fontSize: variant === 'compact' ? 'md' : { base: 'lg', md: 'xl', lg: '2xl' },
fontWeight: 'bold', fontWeight: 'bold',
color: 'gray.900', color: 'gray.900',
mb: variant === 'compact' ? '1' : '3' mb: variant === 'compact' ? '0.5' : { base: '1', md: '2' }
})}> })}>
{variant === 'detailed' ? config.fullName || config.name : config.name} {variant === 'detailed' ? config.fullName || config.name : config.name}
</h4> </h4>
{variant === 'detailed' && ( {variant === 'detailed' && (
<p className={css({ <p className={css({
fontSize: 'base', fontSize: { base: 'xs', md: 'sm', lg: 'base' },
color: 'gray.600', color: 'gray.600',
mb: '4', mb: { base: '2', md: '3' },
lineHeight: 'relaxed' lineHeight: 'relaxed',
display: { base: 'none', sm: 'block' }
})}> })}>
{config.longDescription || config.description} {config.description}
</p> </p>
)} )}
@ -102,16 +103,16 @@ export function GameCard({
<div className={css({ <div className={css({
display: 'flex', display: 'flex',
flexWrap: 'wrap', flexWrap: 'wrap',
gap: '2', gap: { base: '1', md: '2' },
justifyContent: 'center', justifyContent: 'center',
mb: '4' mb: { base: '2', md: '3' }
})}> })}>
{config.chips.map((chip, index) => ( {config.chips.map((chip, index) => (
<span <span
key={index} key={index}
className={css({ className={css({
px: '3', px: { base: '2', md: '3' },
py: '1', py: { base: '0.5', md: '1' },
background: config.color === 'green' background: config.color === 'green'
? 'linear-gradient(135deg, #d1fae5, #a7f3d0)' ? 'linear-gradient(135deg, #d1fae5, #a7f3d0)'
: config.color === 'purple' : config.color === 'purple'
@ -123,7 +124,7 @@ export function GameCard({
? 'indigo.800' ? 'indigo.800'
: 'blue.800', : 'blue.800',
rounded: 'full', rounded: 'full',
fontSize: 'xs', fontSize: { base: '2xs', md: 'xs' },
fontWeight: 'semibold', fontWeight: 'semibold',
border: '1px solid', border: '1px solid',
borderColor: config.color === 'green' borderColor: config.color === 'green'
@ -142,14 +143,14 @@ export function GameCard({
{/* Player availability indicator */} {/* Player availability indicator */}
<div className={css({ <div className={css({
fontSize: variant === 'compact' ? 'xs' : 'sm', fontSize: variant === 'compact' ? '2xs' : { base: '2xs', md: 'xs', lg: 'sm' },
color: available ? 'green.600' : 'red.600', color: available ? 'green.600' : 'red.600',
fontWeight: 'semibold', fontWeight: 'semibold',
display: 'inline-flex', display: 'inline-flex',
alignItems: 'center', alignItems: 'center',
gap: '1', gap: '1',
px: '2', px: { base: '1.5', md: '2' },
py: '1', py: { base: '0.5', md: '1' },
background: available ? 'rgba(16, 185, 129, 0.1)' : 'rgba(239, 68, 68, 0.1)', background: available ? 'rgba(16, 185, 129, 0.1)' : 'rgba(239, 68, 68, 0.1)',
rounded: 'full', rounded: 'full',
border: '1px solid', border: '1px solid',

View File

@ -111,8 +111,10 @@ export function GameSelector({
) : ( ) : (
<div className={css({ <div className={css({
display: 'grid', display: 'grid',
gridTemplateColumns: { base: '1fr', md: variant === 'compact' ? 'repeat(2, 1fr)' : 'repeat(2, 1fr)' }, gridTemplateColumns: { base: '1fr', md: 'repeat(2, 1fr)' },
gap: variant === 'compact' ? '3' : '4' gap: variant === 'compact' ? '2' : { base: '2', md: '3' },
height: '100%',
alignItems: 'start'
})}> })}>
{Object.entries(GAMES_CONFIG).map(([gameType, config]) => ( {Object.entries(GAMES_CONFIG).map(([gameType, config]) => (
<GameCard <GameCard