From dd734674fc61a6b03eb76419b5935a072a2111f8 Mon Sep 17 00:00:00 2001 From: jstar_00 Date: Mon, 8 Dec 2025 00:11:23 +0900 Subject: [PATCH 1/6] =?UTF-8?q?init:=20color=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/shared/styles/tokens/colors.css.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/styles/tokens/colors.css.ts b/src/shared/styles/tokens/colors.css.ts index 927c8fd..bcc6524 100644 --- a/src/shared/styles/tokens/colors.css.ts +++ b/src/shared/styles/tokens/colors.css.ts @@ -31,7 +31,7 @@ export const colors = { bgGrad: 'radial-gradient(135.07% 124.3% at 50% -59.67%, rgba(0, 42, 140, 0.70) 0%, rgba(7, 9, 13, 0.00) 100%), #07090D', cardGradPrimary: - 'radial-gradient(574.85% 120.26% at 50% -15.34%, rgba(0, 89, 255, 0.00) 0%, rgba(0, 89, 255, 0.08) 61.09%, rgba(0, 89, 255, 0.24) 100%)', + 'radial-gradient(574.85% 120.26% at 50% -15.34%, rgba(0, 89, 255, 0.00) 0%, rgba(0, 89, 255, 0.08) 61.09%, rgba(0, 89, 255, 0.24) 100%);', cardGradGray: 'radial-gradient(116.61% 120.26% at 50% -15.34%, rgba(137, 150, 169, 0.00) 29.33%, rgba(137, 150, 169, 0.06) 61.54%, rgba(137, 150, 169, 0.15) 100%)', From b8f190333298fdfb72e9cfc126ea34c3f630e524 Mon Sep 17 00:00:00 2001 From: jstar_00 Date: Mon, 8 Dec 2025 00:12:12 +0900 Subject: [PATCH 2/6] =?UTF-8?q?feat:=20build.sh=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 build.sh diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..0b97fcf --- /dev/null +++ b/build.sh @@ -0,0 +1,5 @@ +#!/bin/sh +cd ../ +mkdir output +cp -R ./fast-cloud-client/* ./output +cp -R ./output ./fast-cloud-client/ \ No newline at end of file From 5e1802c01e75f7a5edf94d42ea61afc259119012 Mon Sep 17 00:00:00 2001 From: jstar_00 Date: Mon, 8 Dec 2025 00:22:45 +0900 Subject: [PATCH 3/6] =?UTF-8?q?feat:=20ci.yml=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 71 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..aceb265 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,71 @@ +name: ci + +on: + pull_request: + branches: [main, develop] + push: + branches: [main, develop] + +permissions: + contents: read + pull-requests: write + +jobs: + build: + if: github.event_name == 'pull_request' || (github.event_name == 'push' && !contains(github.event.head_commit.message, '[skip ci]')) + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v5 + + - name: Install pnpm + uses: pnpm/action-setup@v4 + with: + version: 9.12.0 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '22.x' + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Build project with Vite + id: build + run: pnpm run build + continue-on-error: true + + - name: Evaluate build status + id: status + run: | + result="failed" + message="빌드 실패 ⛔️" + + if [ "${{ steps.build.outcome }}" == "success" ]; then + result="success" + message="빌드 성공 🥳" + fi + + echo "result=$result" >> $GITHUB_OUTPUT + echo "message=$message" >> $GITHUB_OUTPUT + + - name: Add comment to PR with build status + if: github.event_name == 'pull_request' + uses: actions/github-script@v6 + with: + script: | + const prNumber = context.payload.pull_request.number; + const message = `${{ steps.status.outputs.message }}`; + await github.rest.issues.createComment({ + owner: context.repo.owner, + repo: context.repo.repo, + issue_number: prNumber, + body: `### 빌드 결과\n${message}` + }); + + - name: Fail job if build failed + if: steps.build.outcome == 'failure' + run: exit 1 From f461f7ac77ef64072f4979313b2f1c97e0e744eb Mon Sep 17 00:00:00 2001 From: jstar_00 Date: Mon, 8 Dec 2025 00:23:47 +0900 Subject: [PATCH 4/6] =?UTF-8?q?feat:=20cd.yml=20=EC=83=9D=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cd.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/cd.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..7841e70 --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,27 @@ +name: git push into another repo to deploy to vercel + +on: + push: + branches: [main, develop] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - name: creates output + run: sh ./build.sh + - name: Pushes to another repository + id: push_directory + uses: cpina/github-action-push-to-another-repository@main + env: + API_TOKEN_GITHUB: ${{ secrets.AUTO_ACTIONS }} + with: + source-directory: "output" + destination-github-username: jstar000 + destination-repository-name: fast-cloud-client + user-email: ${{ secrets.EMAIL }} + commit-message: ${{ github.event.commits[0].message }} + target-branch: ${{ github.ref_name }} + - name: Test get variable exported by push-to-another-repository + run: echo $DESTINATION_CLONED_DIRECTORY \ No newline at end of file From fed43614edaa15e7c9945974e692686f843acc88 Mon Sep 17 00:00:00 2001 From: jstar_00 Date: Mon, 8 Dec 2025 00:24:20 +0900 Subject: [PATCH 5/6] =?UTF-8?q?feat:=20vercel.json=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vercel.json | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 vercel.json diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..1323cda --- /dev/null +++ b/vercel.json @@ -0,0 +1,8 @@ +{ + "rewrites": [ + { + "source": "/(.*)", + "destination": "/index.html" + } + ] +} From 56ac254a5e5da893e99ed2706990f1c2d50771bb Mon Sep 17 00:00:00 2001 From: jstar_00 Date: Mon, 8 Dec 2025 00:35:01 +0900 Subject: [PATCH 6/6] =?UTF-8?q?fix:=20ci.yml=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cd.yml | 4 ++-- .github/workflows/ci.yml | 17 +++++++++++++++-- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 7841e70..84e4c6f 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -17,11 +17,11 @@ jobs: env: API_TOKEN_GITHUB: ${{ secrets.AUTO_ACTIONS }} with: - source-directory: "output" + source-directory: 'output' destination-github-username: jstar000 destination-repository-name: fast-cloud-client user-email: ${{ secrets.EMAIL }} commit-message: ${{ github.event.commits[0].message }} target-branch: ${{ github.ref_name }} - name: Test get variable exported by push-to-another-repository - run: echo $DESTINATION_CLONED_DIRECTORY \ No newline at end of file + run: echo $DESTINATION_CLONED_DIRECTORY diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aceb265..dad008a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,3 +1,4 @@ +# CI 워크플로우: PR 및 Push 시 코드 품질 검사 및 빌드 수행 name: ci on: @@ -8,14 +9,16 @@ on: permissions: contents: read - pull-requests: write + pull-requests: write # PR 코멘트 작성 권한 jobs: build: + # PR이거나, [skip ci]가 없는 push일 때만 실행 if: github.event_name == 'pull_request' || (github.event_name == 'push' && !contains(github.event.head_commit.message, '[skip ci]')) runs-on: ubuntu-latest steps: + # 1. 환경 설정 - name: Checkout repository uses: actions/checkout@v5 @@ -33,11 +36,20 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile + # 2. 코드 품질 검사, 실패 시 CI 실패 + - name: Run lint + run: pnpm lint + + - name: Check formatting + run: pnpm format:check + + # 3. 빌드 - name: Build project with Vite id: build run: pnpm run build - continue-on-error: true + continue-on-error: true # 빌드 실패해도 PR 코멘트 작성을 위해 계속 진행 + # 4. 빌드 결과 처리 - name: Evaluate build status id: status run: | @@ -52,6 +64,7 @@ jobs: echo "result=$result" >> $GITHUB_OUTPUT echo "message=$message" >> $GITHUB_OUTPUT + # 5. PR에 빌드 결과 코멘트 - name: Add comment to PR with build status if: github.event_name == 'pull_request' uses: actions/github-script@v6