From ad6174c293ec7e780fc33095410e71be8cab7894 Mon Sep 17 00:00:00 2001 From: minjeoong Date: Fri, 1 Aug 2025 14:59:15 +0900 Subject: [PATCH 01/16] =?UTF-8?q?chore:=20version-control=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 95 --------------------------- .github/workflows/version-control.yml | 63 ++++++++++++++++++ 2 files changed, 63 insertions(+), 95 deletions(-) delete mode 100644 .github/workflows/release.yml create mode 100644 .github/workflows/version-control.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index e0b37f6f..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,95 +0,0 @@ -name: Release - -on: - pull_request: - branches: - - main - types: [opened, synchronize, reopened, closed] - push: - branches: - - main - -concurrency: ${{ github.workflow }}-${{ github.ref }} - -jobs: - check-changesets: - name: Check Changesets - runs-on: ubuntu-latest - if: github.event_name == 'pull_request' && github.base_ref == 'main' - steps: - - name: Checkout Repo - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 18 - cache: 'pnpm' - - - name: Setup pnpm - uses: pnpm/action-setup@v4 - with: - version: 9.12.0 - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Check for Changesets - run: | - echo "πŸ” Checking for changesets..." - - if [ ! -d ".changeset" ]; then - echo "❌ .changeset directory not found!" - echo "πŸ’‘ Please run 'pnpm changeset' to create a changeset" - exit 1 - fi - - if [ -z "$(ls -A .changeset/*.md 2>/dev/null)" ]; then - echo "❌ No changeset files found in .changeset/ directory!" - echo "πŸ’‘ Please run 'pnpm changeset' to create a changeset" - echo "πŸ“– See CHANGESETS.md for detailed instructions" - exit 1 - fi - - echo "βœ… Changesets found:" - ls -la .changeset/*.md - echo "" - echo "πŸŽ‰ Changeset validation passed!" - - preview-changesets: - name: Preview Changesets - runs-on: ubuntu-latest - if: github.event_name == 'pull_request' && github.base_ref == 'main' - steps: - - name: Checkout Repo - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 18 - cache: 'pnpm' - - - name: Setup pnpm - uses: pnpm/action-setup@v4 - with: - version: 9.12.0 - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Preview Changesets - run: | - echo "πŸ“¦ Preview of changesets:" - echo "================================" - pnpm changeset status - echo "" - echo "πŸ” Changeset files:" - echo "================================" - ls -la .changeset/*.md 2>/dev/null || echo "No changeset files found" - echo "" - echo "πŸ“– For more information, see CHANGESETS.md" \ No newline at end of file diff --git a/.github/workflows/version-control.yml b/.github/workflows/version-control.yml new file mode 100644 index 00000000..7757fb75 --- /dev/null +++ b/.github/workflows/version-control.yml @@ -0,0 +1,63 @@ +name: Changeset Version Check Only + +on: + pull_request: + branches: [main] + types: [opened, synchronize, reopened] + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +jobs: + check-and-preview-changesets: + name: Check & Preview Changesets + runs-on: ubuntu-latest + if: github.event_name == 'pull_request' && github.base_ref == 'main' + + steps: + - name: πŸ“₯ Checkout Repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: βš™οΈ Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 18 + cache: 'pnpm' + + - name: πŸ“¦ Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9.12.0 + + - name: πŸ“š Install dependencies + run: pnpm install --frozen-lockfile + + - name: βœ… Check for Changesets + run: | + echo "πŸ” Changeset 쑴재 μ—¬λΆ€ 확인 쀑..." + + if [ ! -d ".changeset" ]; then + echo "❌ .changeset 디렉토리가 μ—†μŠ΅λ‹ˆλ‹€!" + echo "πŸ’‘ 'pnpm changeset'을 μ‹€ν–‰ν•˜μ—¬ 변경사항을 μž‘μ„±ν•΄μ£Όμ„Έμš”." + exit 1 + fi + + if [ -z "$(ls -A .changeset/*.md 2>/dev/null)" ]; then + echo "❌ .changeset 디렉토리에 changeset 파일이 μ—†μŠ΅λ‹ˆλ‹€!" + echo "πŸ’‘ 'pnpm changeset'을 μ‹€ν–‰ν•˜μ—¬ 변경사항을 μž‘μ„±ν•΄μ£Όμ„Έμš”." + echo "πŸ“– μžμ„Έν•œ λ‚΄μš©μ€ CHANGESETS.mdλ₯Ό μ°Έκ³ ν•˜μ„Έμš”." + exit 1 + fi + + echo "βœ… λ‹€μŒ changeset νŒŒμΌλ“€μ΄ ν™•μΈλ˜μ—ˆμŠ΅λ‹ˆλ‹€:" + ls -la .changeset/*.md + echo "" + + - name: πŸ” Changeset 버전 λ³€κ²½ 미리보기 + run: | + echo "πŸ“¦ 변경될 버전 미리보기:" + echo "================================" + pnpm changeset status || echo "⚠️ Changeset μƒνƒœλ₯Ό 확인할 수 μ—†μŠ΅λ‹ˆλ‹€." + echo "" + echo "πŸ“– μžμ„Έν•œ 버전 μ—…λ°μ΄νŠΈ 내역은 μœ„ λ‚΄μš©μ„ μ°Έμ‘°ν•΄μ£Όμ„Έμš”." \ No newline at end of file From f301ba10a554e4e1187ee62795bc8295b13fd2d3 Mon Sep 17 00:00:00 2001 From: minjeoong Date: Fri, 1 Aug 2025 15:02:49 +0900 Subject: [PATCH 02/16] =?UTF-8?q?fix:=20develop=20=EB=B8=8C=EB=9E=9C?= =?UTF-8?q?=EC=B9=98=EB=A1=9C=20=EC=9E=84=EC=8B=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/version-control.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/version-control.yml b/.github/workflows/version-control.yml index 7757fb75..611204dd 100644 --- a/.github/workflows/version-control.yml +++ b/.github/workflows/version-control.yml @@ -11,7 +11,7 @@ jobs: check-and-preview-changesets: name: Check & Preview Changesets runs-on: ubuntu-latest - if: github.event_name == 'pull_request' && github.base_ref == 'main' + if: github.event_name == 'pull_request' && github.base_ref == 'develop' steps: - name: πŸ“₯ Checkout Repository From a81c5bfec41503894535346b5e1288d6f5152186 Mon Sep 17 00:00:00 2001 From: minjeoong Date: Fri, 1 Aug 2025 15:15:13 +0900 Subject: [PATCH 03/16] =?UTF-8?q?fix:=20setup=20pnpm=20,=20setup=20node=20?= =?UTF-8?q?=EC=88=9C=EC=84=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/version-control.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/version-control.yml b/.github/workflows/version-control.yml index 611204dd..f9d230fb 100644 --- a/.github/workflows/version-control.yml +++ b/.github/workflows/version-control.yml @@ -2,7 +2,7 @@ name: Changeset Version Check Only on: pull_request: - branches: [main] + branches: [develop] types: [opened, synchronize, reopened] concurrency: ${{ github.workflow }}-${{ github.ref }} @@ -19,17 +19,17 @@ jobs: with: fetch-depth: 0 + - name: πŸ“¦ Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9.12.0 + - name: βš™οΈ Setup Node.js uses: actions/setup-node@v4 with: node-version: 18 cache: 'pnpm' - - name: πŸ“¦ Setup pnpm - uses: pnpm/action-setup@v4 - with: - version: 9.12.0 - - name: πŸ“š Install dependencies run: pnpm install --frozen-lockfile From c30d10943e0e09f456d9d18031308e044b8ed35b Mon Sep 17 00:00:00 2001 From: minjeoong Date: Fri, 1 Aug 2025 15:36:44 +0900 Subject: [PATCH 04/16] =?UTF-8?q?fix:=20develop=20=EB=B8=8C=EB=9E=9C?= =?UTF-8?q?=EC=B9=98=20=ED=85=8C=EC=8A=A4=ED=8A=B8=EB=A5=BC=20=EC=9C=84?= =?UTF-8?q?=ED=95=B4=20=EC=9E=84=EC=8B=9C=20fetch=20=EB=B8=8C=EB=9E=9C?= =?UTF-8?q?=EC=B9=98=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/version-control.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/version-control.yml b/.github/workflows/version-control.yml index f9d230fb..77f090b6 100644 --- a/.github/workflows/version-control.yml +++ b/.github/workflows/version-control.yml @@ -19,6 +19,9 @@ jobs: with: fetch-depth: 0 + - name: Fetch develop branch + run: git fetch origin develop:refs/remotes/origin/develop + - name: πŸ“¦ Setup pnpm uses: pnpm/action-setup@v4 with: From 286ad44ddc635507e0455bb63690ad23b983a729 Mon Sep 17 00:00:00 2001 From: minjeoong Date: Fri, 1 Aug 2025 17:39:14 +0900 Subject: [PATCH 05/16] feat: changeset version --- .changeset/ninety-spoons-unite.md | 6 ------ .changeset/tall-lemons-join.md | 6 ------ apps/client/CHANGELOG.md | 14 ++++++++++++++ apps/client/package.json | 2 +- lefthook.yml | 2 +- packages/bds-ui/CHANGELOG.md | 11 +++++++++++ packages/bds-ui/package.json | 2 +- 7 files changed, 28 insertions(+), 15 deletions(-) delete mode 100644 .changeset/ninety-spoons-unite.md delete mode 100644 .changeset/tall-lemons-join.md create mode 100644 apps/client/CHANGELOG.md create mode 100644 packages/bds-ui/CHANGELOG.md diff --git a/.changeset/ninety-spoons-unite.md b/.changeset/ninety-spoons-unite.md deleted file mode 100644 index 332da5b4..00000000 --- a/.changeset/ninety-spoons-unite.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@bofit/client': major -'@bds/ui': major ---- - -first version control diff --git a/.changeset/tall-lemons-join.md b/.changeset/tall-lemons-join.md deleted file mode 100644 index 594b6f01..00000000 --- a/.changeset/tall-lemons-join.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@bofit/client': major -'@bds/ui': patch ---- - -init version control diff --git a/apps/client/CHANGELOG.md b/apps/client/CHANGELOG.md new file mode 100644 index 00000000..fcb80d69 --- /dev/null +++ b/apps/client/CHANGELOG.md @@ -0,0 +1,14 @@ +# @bofit/client + +## 1.0.0 + +### Major Changes + +- 5ec8413: first version control +- b887609: init version control + +### Patch Changes + +- Updated dependencies [5ec8413] +- Updated dependencies [b887609] + - @bds/ui@1.0.0 diff --git a/apps/client/package.json b/apps/client/package.json index 36c7fc89..73b207ed 100644 --- a/apps/client/package.json +++ b/apps/client/package.json @@ -1,6 +1,6 @@ { "name": "@bofit/client", - "version": "0.0.0", + "version": "1.0.0", "type": "module", "scripts": { "dev": "vite", diff --git a/lefthook.yml b/lefthook.yml index a50a220e..4663863d 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -2,7 +2,7 @@ pre-commit: parallel: true commands: lint: - run: pnpm lint + run: /Users/asst2503242/.npm-global/bin/pnpm lint prettier: glob: '*.{js,ts,jsx,tsx,json,yaml,md,prettierrc}' run: npx prettier --write {staged_files} diff --git a/packages/bds-ui/CHANGELOG.md b/packages/bds-ui/CHANGELOG.md new file mode 100644 index 00000000..9b325191 --- /dev/null +++ b/packages/bds-ui/CHANGELOG.md @@ -0,0 +1,11 @@ +# @bds/ui + +## 1.0.0 + +### Major Changes + +- 5ec8413: first version control + +### Patch Changes + +- b887609: init version control diff --git a/packages/bds-ui/package.json b/packages/bds-ui/package.json index 6e083388..ee3a6bf1 100644 --- a/packages/bds-ui/package.json +++ b/packages/bds-ui/package.json @@ -1,6 +1,6 @@ { "name": "@bds/ui", - "version": "0.1.0", + "version": "1.0.0", "private": true, "exports": { ".": "./src/components/index.ts", From 718c68007a0411a83e86407cc61cfba60981129c Mon Sep 17 00:00:00 2001 From: minjeoong Date: Fri, 1 Aug 2025 17:40:15 +0900 Subject: [PATCH 06/16] =?UTF-8?q?fix:=20lefthook=20=EB=A1=A4=EB=B0=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lefthook.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lefthook.yml b/lefthook.yml index 4663863d..a50a220e 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -2,7 +2,7 @@ pre-commit: parallel: true commands: lint: - run: /Users/asst2503242/.npm-global/bin/pnpm lint + run: pnpm lint prettier: glob: '*.{js,ts,jsx,tsx,json,yaml,md,prettierrc}' run: npx prettier --write {staged_files} From fdb2e07e6093b2427c8fdc8cd78af057f63bb6ab Mon Sep 17 00:00:00 2001 From: minjeoong Date: Fri, 1 Aug 2025 17:42:45 +0900 Subject: [PATCH 07/16] =?UTF-8?q?fix:=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20=EB=B0=8F=20=EC=9E=AC=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/version-control.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/version-control.yml b/.github/workflows/version-control.yml index 77f090b6..b6c3d221 100644 --- a/.github/workflows/version-control.yml +++ b/.github/workflows/version-control.yml @@ -19,9 +19,6 @@ jobs: with: fetch-depth: 0 - - name: Fetch develop branch - run: git fetch origin develop:refs/remotes/origin/develop - - name: πŸ“¦ Setup pnpm uses: pnpm/action-setup@v4 with: @@ -61,6 +58,6 @@ jobs: run: | echo "πŸ“¦ 변경될 버전 미리보기:" echo "================================" - pnpm changeset status || echo "⚠️ Changeset μƒνƒœλ₯Ό 확인할 수 μ—†μŠ΅λ‹ˆλ‹€." + changeset status || echo "⚠️ Changeset μƒνƒœλ₯Ό 확인할 수 μ—†μŠ΅λ‹ˆλ‹€." echo "" echo "πŸ“– μžμ„Έν•œ 버전 μ—…λ°μ΄νŠΈ 내역은 μœ„ λ‚΄μš©μ„ μ°Έμ‘°ν•΄μ£Όμ„Έμš”." \ No newline at end of file From 5d8b93fbf3a065a755456e843d37958cdb58969b Mon Sep 17 00:00:00 2001 From: minjeoong Date: Fri, 1 Aug 2025 17:47:53 +0900 Subject: [PATCH 08/16] =?UTF-8?q?fix:=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20=EB=B0=8F=20=EC=9E=AC=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/version-control.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/version-control.yml b/.github/workflows/version-control.yml index b6c3d221..bdb912d0 100644 --- a/.github/workflows/version-control.yml +++ b/.github/workflows/version-control.yml @@ -58,6 +58,6 @@ jobs: run: | echo "πŸ“¦ 변경될 버전 미리보기:" echo "================================" - changeset status || echo "⚠️ Changeset μƒνƒœλ₯Ό 확인할 수 μ—†μŠ΅λ‹ˆλ‹€." + pnpm changeset status --since=origin/develop || echo "⚠️ Changeset μƒνƒœλ₯Ό 확인할 수 μ—†μŠ΅λ‹ˆλ‹€." echo "" echo "πŸ“– μžμ„Έν•œ 버전 μ—…λ°μ΄νŠΈ 내역은 μœ„ λ‚΄μš©μ„ μ°Έμ‘°ν•΄μ£Όμ„Έμš”." \ No newline at end of file From 792d5acf09b9d09809af718d421882ed87ff2147 Mon Sep 17 00:00:00 2001 From: minjeoong Date: Fri, 1 Aug 2025 18:52:56 +0900 Subject: [PATCH 09/16] =?UTF-8?q?feat:=20=EB=B2=84=EC=A0=84=20=EB=8D=A4?= =?UTF-8?q?=ED=94=84=20=EC=BB=A4=EB=B0=8B=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/config.json | 10 ++++++---- .github/workflows/version-control.yml | 17 ++++++++++------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/.changeset/config.json b/.changeset/config.json index 3623d7da..8a107b7a 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -1,8 +1,10 @@ { - "$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json", - "changelog": "@changesets/cli/changelog", - "commit": true, - "fixed": [], + "$schema": "https://unpkg.com/@changesets/config@2.3.1/schema.json", + "changelog": [ + "@changesets/changelog-github", + { "repo": "team-bofit/bofit-client" } + ], + "commit": false, "linked": [], "access": "restricted", "baseBranch": "develop", diff --git a/.github/workflows/version-control.yml b/.github/workflows/version-control.yml index bdb912d0..92762693 100644 --- a/.github/workflows/version-control.yml +++ b/.github/workflows/version-control.yml @@ -51,13 +51,16 @@ jobs: fi echo "βœ… λ‹€μŒ changeset νŒŒμΌλ“€μ΄ ν™•μΈλ˜μ—ˆμŠ΅λ‹ˆλ‹€:" - ls -la .changeset/*.md + ls -la .changeset/*.md echo "" - - name: πŸ” Changeset 버전 λ³€κ²½ 미리보기 + - name: Bump version and generate changelog + run: pnpm changeset version + + - name: Commit version bump run: | - echo "πŸ“¦ 변경될 버전 미리보기:" - echo "================================" - pnpm changeset status --since=origin/develop || echo "⚠️ Changeset μƒνƒœλ₯Ό 확인할 수 μ—†μŠ΅λ‹ˆλ‹€." - echo "" - echo "πŸ“– μžμ„Έν•œ 버전 μ—…λ°μ΄νŠΈ 내역은 μœ„ λ‚΄μš©μ„ μ°Έμ‘°ν•΄μ£Όμ„Έμš”." \ No newline at end of file + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add . + git commit -m "chore: release version" || echo "No changes to commit" + git push origin HEAD:${{ github.head_ref }} \ No newline at end of file From d9449e1f981e7ac1d02714167bdb43d2b7101c94 Mon Sep 17 00:00:00 2001 From: minjeoong Date: Fri, 1 Aug 2025 18:56:13 +0900 Subject: [PATCH 10/16] =?UTF-8?q?feat:=20=EB=B2=84=EC=A0=90=20=EB=8D=A4?= =?UTF-8?q?=ED=94=84=20=EC=BB=A4=EB=B0=8B=20write=20=EA=B6=8C=ED=95=9C=20?= =?UTF-8?q?=EB=B6=80=EC=97=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/version-control.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/version-control.yml b/.github/workflows/version-control.yml index 92762693..d43b1422 100644 --- a/.github/workflows/version-control.yml +++ b/.github/workflows/version-control.yml @@ -5,6 +5,9 @@ on: branches: [develop] types: [opened, synchronize, reopened] +permissions: + contents: write + concurrency: ${{ github.workflow }}-${{ github.ref }} jobs: From 91995edec1a5f260e3305f49f4d1b4e0a0c6a4af Mon Sep 17 00:00:00 2001 From: minjeoong Date: Fri, 1 Aug 2025 19:02:38 +0900 Subject: [PATCH 11/16] =?UTF-8?q?fix:=20=EC=A1=B4=EC=9E=AC=20=EC=97=AC?= =?UTF-8?q?=EB=B6=80=20=ED=99=95=EC=9D=B8=20/=20=EB=B2=84=EC=A0=84=20?= =?UTF-8?q?=EB=8D=A4=ED=94=84=20=EB=91=90=EA=B0=9C=EB=A1=9C=20=EB=B6=84?= =?UTF-8?q?=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/check-changeset.yml | 34 +++++++++++++ .github/workflows/version-control.yml | 69 --------------------------- .github/workflows/version-dump.yml | 48 +++++++++++++++++++ 3 files changed, 82 insertions(+), 69 deletions(-) create mode 100644 .github/workflows/check-changeset.yml delete mode 100644 .github/workflows/version-control.yml create mode 100644 .github/workflows/version-dump.yml diff --git a/.github/workflows/check-changeset.yml b/.github/workflows/check-changeset.yml new file mode 100644 index 00000000..7f99793b --- /dev/null +++ b/.github/workflows/check-changeset.yml @@ -0,0 +1,34 @@ +name: Changeset Presence Check (develop) + +on: + pull_request: + branches: [develop] + types: [opened, synchronize, reopened] + +jobs: + check-changeset: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup Node.js & pnpm + uses: actions/setup-node@v4 + with: + node-version: 18 + cache: 'pnpm' + + - name: Install dependencies + run: pnpm install + + - name: Check for changeset + run: | + if [ ! -d ".changeset" ] || [ -z "$(ls -A .changeset/*.md 2>/dev/null)" ]; then + echo "❌ changeset 파일이 μ—†μŠ΅λ‹ˆλ‹€." + exit 1 + fi + + echo "βœ… changeset 파일이 μžˆμŠ΅λ‹ˆλ‹€:" + ls -la .changeset/*.md \ No newline at end of file diff --git a/.github/workflows/version-control.yml b/.github/workflows/version-control.yml deleted file mode 100644 index d43b1422..00000000 --- a/.github/workflows/version-control.yml +++ /dev/null @@ -1,69 +0,0 @@ -name: Changeset Version Check Only - -on: - pull_request: - branches: [develop] - types: [opened, synchronize, reopened] - -permissions: - contents: write - -concurrency: ${{ github.workflow }}-${{ github.ref }} - -jobs: - check-and-preview-changesets: - name: Check & Preview Changesets - runs-on: ubuntu-latest - if: github.event_name == 'pull_request' && github.base_ref == 'develop' - - steps: - - name: πŸ“₯ Checkout Repository - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: πŸ“¦ Setup pnpm - uses: pnpm/action-setup@v4 - with: - version: 9.12.0 - - - name: βš™οΈ Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 18 - cache: 'pnpm' - - - name: πŸ“š Install dependencies - run: pnpm install --frozen-lockfile - - - name: βœ… Check for Changesets - run: | - echo "πŸ” Changeset 쑴재 μ—¬λΆ€ 확인 쀑..." - - if [ ! -d ".changeset" ]; then - echo "❌ .changeset 디렉토리가 μ—†μŠ΅λ‹ˆλ‹€!" - echo "πŸ’‘ 'pnpm changeset'을 μ‹€ν–‰ν•˜μ—¬ 변경사항을 μž‘μ„±ν•΄μ£Όμ„Έμš”." - exit 1 - fi - - if [ -z "$(ls -A .changeset/*.md 2>/dev/null)" ]; then - echo "❌ .changeset 디렉토리에 changeset 파일이 μ—†μŠ΅λ‹ˆλ‹€!" - echo "πŸ’‘ 'pnpm changeset'을 μ‹€ν–‰ν•˜μ—¬ 변경사항을 μž‘μ„±ν•΄μ£Όμ„Έμš”." - echo "πŸ“– μžμ„Έν•œ λ‚΄μš©μ€ CHANGESETS.mdλ₯Ό μ°Έκ³ ν•˜μ„Έμš”." - exit 1 - fi - - echo "βœ… λ‹€μŒ changeset νŒŒμΌλ“€μ΄ ν™•μΈλ˜μ—ˆμŠ΅λ‹ˆλ‹€:" - ls -la .changeset/*.md - echo "" - - - name: Bump version and generate changelog - run: pnpm changeset version - - - name: Commit version bump - run: | - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git add . - git commit -m "chore: release version" || echo "No changes to commit" - git push origin HEAD:${{ github.head_ref }} \ No newline at end of file diff --git a/.github/workflows/version-dump.yml b/.github/workflows/version-dump.yml new file mode 100644 index 00000000..ab8e62b3 --- /dev/null +++ b/.github/workflows/version-dump.yml @@ -0,0 +1,48 @@ +# .github/workflows/version-bump-on-release.yml + +name: Version & Changelog (on release PR) + +on: + pull_request: + branches: [main] + types: [opened, synchronize, reopened] + +permissions: + contents: write + +jobs: + version-release: + runs-on: ubuntu-latest + if: github.event.pull_request.head.ref == 'develop' + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + ref: ${{ github.head_ref }} + + - name: Setup Node.js & pnpm + uses: actions/setup-node@v4 + with: + node-version: 18 + cache: 'pnpm' + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9.12.0 + + - name: Install dependencies + run: pnpm install + + - name: Version bump + run: pnpm changeset version + + - name: Commit and push + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add . + git commit -m "chore: release version" || echo "No changes to commit" + git push origin HEAD:${{ github.head_ref }} \ No newline at end of file From 8171b6d9efbb9284f958f73da99529208066ea1a Mon Sep 17 00:00:00 2001 From: minjeoong Date: Thu, 7 Aug 2025 18:59:38 +0900 Subject: [PATCH 12/16] =?UTF-8?q?fix:=20=EB=B2=84=EC=A0=84=20=EB=8D=A4?= =?UTF-8?q?=ED=94=84=20=ED=8C=8C=EC=9D=BC=20main=20=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EB=8F=8C=EB=A6=AC=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/version-dump.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/version-dump.yml b/.github/workflows/version-dump.yml index ab8e62b3..86b81f6c 100644 --- a/.github/workflows/version-dump.yml +++ b/.github/workflows/version-dump.yml @@ -13,7 +13,7 @@ permissions: jobs: version-release: runs-on: ubuntu-latest - if: github.event.pull_request.head.ref == 'develop' + if: github.event.pull_request.head.ref == 'main' steps: - name: Checkout @@ -36,6 +36,13 @@ jobs: - name: Install dependencies run: pnpm install + - name: Check for changeset files + run: | + if [ -z "$(ls .changeset/*.md 2>/dev/null)" ]; then + echo "No changeset files found. Skipping version bump." + exit 0 + fi + - name: Version bump run: pnpm changeset version From 470568b4236df1971180c0db0c5882950e6f924c Mon Sep 17 00:00:00 2001 From: minjeoong Date: Thu, 7 Aug 2025 19:02:00 +0900 Subject: [PATCH 13/16] =?UTF-8?q?fix:=20=EB=B2=84=EC=A0=84=20=EB=8D=A4?= =?UTF-8?q?=ED=94=84=20=ED=8C=8C=EC=9D=BC=20main=20=EC=9C=BC=EB=A1=9C=20?= =?UTF-8?q?=EB=8F=8C=EB=A6=AC=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lefthook.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lefthook.yml b/lefthook.yml index a50a220e..4663863d 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -2,7 +2,7 @@ pre-commit: parallel: true commands: lint: - run: pnpm lint + run: /Users/asst2503242/.npm-global/bin/pnpm lint prettier: glob: '*.{js,ts,jsx,tsx,json,yaml,md,prettierrc}' run: npx prettier --write {staged_files} From bde0a4df11892111fcb71155f886f83312b933d1 Mon Sep 17 00:00:00 2001 From: minjeoong Date: Thu, 7 Aug 2025 19:02:36 +0900 Subject: [PATCH 14/16] =?UTF-8?q?fix:=20lefthook=20=EB=A1=A4=EB=B0=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lefthook.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lefthook.yml b/lefthook.yml index 4663863d..a50a220e 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -2,7 +2,7 @@ pre-commit: parallel: true commands: lint: - run: /Users/asst2503242/.npm-global/bin/pnpm lint + run: pnpm lint prettier: glob: '*.{js,ts,jsx,tsx,json,yaml,md,prettierrc}' run: npx prettier --write {staged_files} From 597f615a4cb93f349dc8fbc786f127caee65dc17 Mon Sep 17 00:00:00 2001 From: minjeoong Date: Thu, 7 Aug 2025 19:05:12 +0900 Subject: [PATCH 15/16] =?UTF-8?q?fix:=20changeset=20check=20yml=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/check-changeset.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/check-changeset.yml b/.github/workflows/check-changeset.yml index 7f99793b..c82b04ed 100644 --- a/.github/workflows/check-changeset.yml +++ b/.github/workflows/check-changeset.yml @@ -20,6 +20,11 @@ jobs: node-version: 18 cache: 'pnpm' + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9.12.0 + - name: Install dependencies run: pnpm install From 726e6cb307e83f00b8d505771400598e00fd4275 Mon Sep 17 00:00:00 2001 From: minjeoong Date: Thu, 7 Aug 2025 19:06:47 +0900 Subject: [PATCH 16/16] =?UTF-8?q?fix:=20changeset=20check=20yml=20setup=20?= =?UTF-8?q?=EC=88=9C=EC=84=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/check-changeset.yml | 11 ++++++----- .github/workflows/version-dump.yml | 12 ++++++------ 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/check-changeset.yml b/.github/workflows/check-changeset.yml index c82b04ed..fa9451fa 100644 --- a/.github/workflows/check-changeset.yml +++ b/.github/workflows/check-changeset.yml @@ -14,16 +14,17 @@ jobs: with: fetch-depth: 0 - - name: Setup Node.js & pnpm + - name: πŸ“¦ Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9.12.0 + + - name: βš™οΈ Setup Node.js uses: actions/setup-node@v4 with: node-version: 18 cache: 'pnpm' - - name: Setup pnpm - uses: pnpm/action-setup@v4 - with: - version: 9.12.0 - name: Install dependencies run: pnpm install diff --git a/.github/workflows/version-dump.yml b/.github/workflows/version-dump.yml index 86b81f6c..689ca858 100644 --- a/.github/workflows/version-dump.yml +++ b/.github/workflows/version-dump.yml @@ -22,17 +22,17 @@ jobs: fetch-depth: 0 ref: ${{ github.head_ref }} - - name: Setup Node.js & pnpm + - name: πŸ“¦ Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9.12.0 + + - name: βš™οΈ Setup Node.js uses: actions/setup-node@v4 with: node-version: 18 cache: 'pnpm' - - name: Setup pnpm - uses: pnpm/action-setup@v4 - with: - version: 9.12.0 - - name: Install dependencies run: pnpm install