diff --git a/.github/workflows/storybook-deploy.yaml b/.github/workflows/storybook-deploy.yaml deleted file mode 100644 index 2b8f9311..00000000 --- a/.github/workflows/storybook-deploy.yaml +++ /dev/null @@ -1,85 +0,0 @@ -name: Deploy Storybook - -on: - push: - branches: - - release/v1 - paths: - - 'packages/**/src/**/*.stories.@(js|jsx|ts|tsx)' - - '.storybook/**' - - 'netlify.toml' - pull_request: - branches: - - release/v1 - paths: - - 'packages/**/src/**/*.stories.@(js|jsx|ts|tsx)' - - '.storybook/**' - - 'netlify.toml' - workflow_dispatch: - -jobs: - # Netlify 배포 (새로 추가) - deploy-netlify: - name: Deploy to Netlify - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version-file: '.nvmrc' - - - name: Setup pnpm - uses: pnpm/action-setup@v4 - with: - version: 9.7.1 - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Build Storybook - run: pnpm build:storybook - - - name: Deploy to Netlify - uses: netlify/actions/cli@master - with: - args: deploy --dir=storybook-static --prod - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} - - # 기존 백업 레포 배포 (기존 시스템 유지) - deploy-backup-repo: - name: Deploy to Backup Repository - runs-on: ubuntu-latest - container: pandoc/latex - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Install mustache (to update the date) - run: apk add ruby && gem install mustache - - - name: Creates output using existing build.sh - run: sh ./build.sh - - - name: Copy .storybook folder to output - run: cp -r .storybook output/ - - - name: Push to backup repository - uses: cpina/github-action-push-to-another-repository@main - env: - API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }} - DESTINATION_USERNAME: "froggy1014" - DESTINATION_REPO: "side-storybook" - with: - source-directory: "output" - destination-github-username: ${{ env.DESTINATION_USERNAME }} - destination-repository-name: ${{ env.DESTINATION_REPO }} - user-email: ${{ secrets.EMAIL }} - commit-message: ${{ github.event.commits[0].message || 'Manual deployment via workflow_dispatch' }} - target-branch: main \ No newline at end of file diff --git a/build.sh b/build.sh deleted file mode 100644 index 98817681..00000000 --- a/build.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -cd ../ -mkdir output - -cp -r .storybook output/ -cp -r .gitignore output/ -cp -R ./side/* ./output -cp -R ./output ./side/ \ No newline at end of file diff --git a/netlify.toml b/netlify.toml deleted file mode 100644 index 3c3a1f25..00000000 --- a/netlify.toml +++ /dev/null @@ -1,26 +0,0 @@ -[build] - base = "." - - command = """ - echo "=== Current directory and files ===" && - pwd && ls -la && - echo "=== Node version from .nvmrc ===" && - cat .nvmrc && - echo "=== Installing dependencies ===" && - corepack enable && - pnpm install --frozen-lockfile && - echo "=== Checking @faker-js/faker ===" && - pnpm list @faker-js/faker || echo "faker not found in dependencies" && - echo "=== Building Storybook ===" && - pnpm build:storybook - """ - - publish = "storybook-static" - -[build.environment] - PNPM_VERSION = "9.7.1" - -[[redirects]] - from = "/*" - to = "/index.html" - status = 200 \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9801e0e2..2ed9badc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -276,7 +276,7 @@ importers: version: 5.6.3 vitest: specifier: 'catalog:' - version: 2.1.9(@types/node@22.15.33)(happy-dom@15.11.7)(terser@5.43.1) + version: 2.1.9(@types/node@22.15.33)(happy-dom@15.11.7)(jsdom@26.1.0)(terser@5.43.1) packages/avatar: dependencies: