Skip to content

Commit d952aed

Browse files
committed
chore: semantic-release 완전 자동화 설정
- @semantic-release/npm 플러그인 추가하여 package.json 자동 업데이트 - @semantic-release/exec 플러그인 추가하여 just lint config 자동 실행 - GitHub Actions에서 release→main 자동 동기화 단계 추가 - package.json 버전 0.4.0으로 수동 업데이트 (이번만) - CHANGELOG.md Prettier 포맷팅 적용 (이번만) 다음 릴리즈부터 완전 자동화됨
1 parent 42ddf59 commit d952aed

5 files changed

Lines changed: 344 additions & 41 deletions

File tree

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,9 @@ jobs:
374374
- name: Install dependencies
375375
run: pnpm install --frozen-lockfile
376376

377+
- name: Install just
378+
uses: extractions/setup-just@v2
379+
377380
- name: Run semantic-release
378381
env:
379382
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -383,3 +386,21 @@ jobs:
383386
GIT_COMMITTER_EMAIL: github-actions[bot]@users.noreply.github.com
384387
HUSKY: 0
385388
run: npx semantic-release
389+
390+
- name: Sync release to main
391+
env:
392+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
393+
run: |
394+
git config user.name "github-actions[bot]"
395+
git config user.email "github-actions[bot]@users.noreply.github.com"
396+
397+
# Fetch latest changes
398+
git fetch origin release
399+
git fetch origin main
400+
401+
# Checkout main and merge release
402+
git checkout main
403+
git merge origin/release --no-edit
404+
405+
# Push to main
406+
git push https://x-access-token:${GITHUB_TOKEN}@github.com/${{ github.repository }}.git main

.releaserc.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,15 @@
4545
}
4646
],
4747
[
48-
"@semantic-release/github",
48+
"@semantic-release/npm",
4949
{
50-
"assets": []
50+
"npmPublish": false
51+
}
52+
],
53+
[
54+
"@semantic-release/exec",
55+
{
56+
"prepareCmd": "just lint config"
5157
}
5258
],
5359
[
@@ -56,6 +62,12 @@
5662
"assets": ["package.json", "CHANGELOG.md"],
5763
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
5864
}
65+
],
66+
[
67+
"@semantic-release/github",
68+
{
69+
"assets": []
70+
}
5971
]
6072
]
6173
}

CHANGELOG.md

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,56 +2,56 @@
22

33
### ✨ Features
44

5-
* 차트 기능 제거 ([ae4cb63](https://github.com/KubrickCode/loa-work/commit/ae4cb636d9735cd109b46e9ced59f553f94e8704)), closes [#170](https://github.com/KubrickCode/loa-work/issues/170)
5+
- 차트 기능 제거 ([ae4cb63](https://github.com/KubrickCode/loa-work/commit/ae4cb636d9735cd109b46e9ced59f553f94e8704)), closes [#170](https://github.com/KubrickCode/loa-work/issues/170)
66

77
### 📚 Documentation
88

9-
* AI 관련 문서 및 설정 교체 ([4354b73](https://github.com/KubrickCode/loa-work/commit/4354b73ffbe1a1e693dfd41ea3897052e6bc592b))
10-
* ai-config-toolkit 리포지토리로부터 코드 동기화 ([ef1e6e0](https://github.com/KubrickCode/loa-work/commit/ef1e6e0f263b435242eecc85135e1070811e27cd))
11-
* ai-config-toolkit 리포지토리로부터 프롬프트 동기화 ([28d6ef9](https://github.com/KubrickCode/loa-work/commit/28d6ef98ba78faeca435a1b4ee989eecbc952cbf))
12-
* CLAUDE.md 업데이트 ([aab1d7f](https://github.com/KubrickCode/loa-work/commit/aab1d7f5382a8ea6ddc0fccac474197ff115bd7f))
13-
* 명령어 실행 원칙 CLAUDE.md에 추가 ([25ca6f0](https://github.com/KubrickCode/loa-work/commit/25ca6f05aae32a7da30c899adf93b6aa6f888ce8))
14-
* 의존성 버전 고정 및 관련 원칙 CLAUDE 스킬 추가 ([7148add](https://github.com/KubrickCode/loa-work/commit/7148addec8473c1b1e7e39114ff793f1920ab472))
15-
* 커밋 명령어에 Conventional Commits 규격 추가 ([4bc294a](https://github.com/KubrickCode/loa-work/commit/4bc294a3e51e5cf210450ed91b3b7cdc50d82878))
9+
- AI 관련 문서 및 설정 교체 ([4354b73](https://github.com/KubrickCode/loa-work/commit/4354b73ffbe1a1e693dfd41ea3897052e6bc592b))
10+
- ai-config-toolkit 리포지토리로부터 코드 동기화 ([ef1e6e0](https://github.com/KubrickCode/loa-work/commit/ef1e6e0f263b435242eecc85135e1070811e27cd))
11+
- ai-config-toolkit 리포지토리로부터 프롬프트 동기화 ([28d6ef9](https://github.com/KubrickCode/loa-work/commit/28d6ef98ba78faeca435a1b4ee989eecbc952cbf))
12+
- CLAUDE.md 업데이트 ([aab1d7f](https://github.com/KubrickCode/loa-work/commit/aab1d7f5382a8ea6ddc0fccac474197ff115bd7f))
13+
- 명령어 실행 원칙 CLAUDE.md에 추가 ([25ca6f0](https://github.com/KubrickCode/loa-work/commit/25ca6f05aae32a7da30c899adf93b6aa6f888ce8))
14+
- 의존성 버전 고정 및 관련 원칙 CLAUDE 스킬 추가 ([7148add](https://github.com/KubrickCode/loa-work/commit/7148addec8473c1b1e7e39114ff793f1920ab472))
15+
- 커밋 명령어에 Conventional Commits 규격 추가 ([4bc294a](https://github.com/KubrickCode/loa-work/commit/4bc294a3e51e5cf210450ed91b3b7cdc50d82878))
1616

1717
### 💄 Styles
1818

19-
* format code ([338ad5b](https://github.com/KubrickCode/loa-work/commit/338ad5bcfcbdada9e98352c540fdeeb0ad50fde6))
20-
* 깨진 문서 포맷 수정 ([748bf33](https://github.com/KubrickCode/loa-work/commit/748bf33e495fad45295f53dd9107e411666bbe29))
19+
- format code ([338ad5b](https://github.com/KubrickCode/loa-work/commit/338ad5bcfcbdada9e98352c540fdeeb0ad50fde6))
20+
- 깨진 문서 포맷 수정 ([748bf33](https://github.com/KubrickCode/loa-work/commit/748bf33e495fad45295f53dd9107e411666bbe29))
2121

2222
### 🔧 CI/CD
2323

24-
* GitHub Actions 워크플로우를 semantic-release 자동화로 전환 ([ce2867c](https://github.com/KubrickCode/loa-work/commit/ce2867c64531a9bddadbdaecaa55b388252cff37))
24+
- GitHub Actions 워크플로우를 semantic-release 자동화로 전환 ([ce2867c](https://github.com/KubrickCode/loa-work/commit/ce2867c64531a9bddadbdaecaa55b388252cff37))
2525

2626
### 🔨 Chore
2727

28-
* Claude Code 터미널명 업데이트 ([c8e446f](https://github.com/KubrickCode/loa-work/commit/c8e446f1cb54c468f8fe2c02cf88c9da135400fc))
29-
* Debian trixie의 moby-cli 미지원으로 인한 docker-in-docker 빌드 실패 문제 수정 ([c1c39a7](https://github.com/KubrickCode/loa-work/commit/c1c39a755420fc69ad0c1890efd1e410b540b0a0))
30-
* dependabot 커밋 메시지 규칙 변경 ([6003625](https://github.com/KubrickCode/loa-work/commit/6003625288666de3a162cfc01b133c4ba9c1f894))
31-
* **deps:** Bump vite in /src/backend ([d9370f2](https://github.com/KubrickCode/loa-work/commit/d9370f2036e3ddd94cbcce0ca902d3236a32e2e0))
32-
* DevContainer rebuild 시 Claude Code 재로그인 문제 해결 ([1379437](https://github.com/KubrickCode/loa-work/commit/13794376d560dc3293016667c72e6c7396df7bcc))
33-
* Docker 빌드 컨텍스트 경로 오류로 인한 배포 실패 ([f95902e](https://github.com/KubrickCode/loa-work/commit/f95902e7442ca93ca2628eaeb314933e89fa78e7))
34-
* frontend lint 명령어 fix 추가 ([8624c23](https://github.com/KubrickCode/loa-work/commit/8624c23cd5de102ed18c7145207a5a5fbcbf0b6e))
35-
* generated.tsx 파일이 husky lint-staged 스킵하도록 수정 ([7a19a8d](https://github.com/KubrickCode/loa-work/commit/7a19a8d3e26241ed669ed6a7a7f67e5bad2fcce3))
36-
* git 액션 버튼 터미널명 설정 ([84e83b1](https://github.com/KubrickCode/loa-work/commit/84e83b133fc33a4198f5a16978684303a2906157))
37-
* GitHub Actions에서 semantic-release 커밋 시 husky 비활성화 ([f524083](https://github.com/KubrickCode/loa-work/commit/f524083dca50cb013878728c928ca9dedd249bd3))
38-
* gitignore 업데이트 ([de2127b](https://github.com/KubrickCode/loa-work/commit/de2127b7c624d92826d66a50e879a943cffc8a00))
39-
* PR 작성자가 자신을 검토자로 추가하려고 할 때 발생하는 오류 수정 ([122edbe](https://github.com/KubrickCode/loa-work/commit/122edbe30c80c4b29e17a04ae4b4485b9f45c615))
40-
* runtime 이미지에서 Prisma 클라이언트 생성 누락 문제 해결 ([10575d9](https://github.com/KubrickCode/loa-work/commit/10575d9a8903fc507f08e0ff7d8bcdf96cbed304))
41-
* semantic-release 의존성 및 설정 추가 ([61769ba](https://github.com/KubrickCode/loa-work/commit/61769ba9a243095aa0e093cd76f1025693e866ac)), closes [#177](https://github.com/KubrickCode/loa-work/issues/177)
42-
* semantic-release 자동화를 위한 릴리즈 프로세스 변경 ([0b8c773](https://github.com/KubrickCode/loa-work/commit/0b8c77357138b3e670b1c74766b2cf9cbafbd2d7)), closes [#177](https://github.com/KubrickCode/loa-work/issues/177)
43-
* 글로벌 환경변수 설정 ([9282297](https://github.com/KubrickCode/loa-work/commit/92822979d06bf5ea17950371bd302c44e7f3d194))
44-
* 기존 릴리즈 히스토리를 CHANGELOG.md에 추가 ([7cb4900](https://github.com/KubrickCode/loa-work/commit/7cb49004132d071a122d850ee3a6020b2931447f)), closes [#177](https://github.com/KubrickCode/loa-work/issues/177)
45-
* 누락된 codegen 적용 ([7bfb370](https://github.com/KubrickCode/loa-work/commit/7bfb37067c85864b2d510f7b458c3e06025cbe15))
46-
* 누락된 의존성 추가 ([bf85562](https://github.com/KubrickCode/loa-work/commit/bf8556278c54da5d8d52091d46f5bc51e0e68833))
47-
* 디스코드 웹훅 URL 환경변수명 변경 ([9afd41d](https://github.com/KubrickCode/loa-work/commit/9afd41d9ed44da2cf278ba8e7d904c17ad4ff520))
48-
* 워크플로우 전용 문서는 git에 업로드되지 않도록 수정 ([334607b](https://github.com/KubrickCode/loa-work/commit/334607b338f5b64fbbfadfa8352f10201bfca3e6))
49-
* 워크플로우 커맨드 이중 언어 문서 생성 기능 추가 ([10f20db](https://github.com/KubrickCode/loa-work/commit/10f20db054be81136f7d56bf8b4373f7818f70ef))
50-
* 자주 사용하는 MCP 서버 추가 ([e8382c0](https://github.com/KubrickCode/loa-work/commit/e8382c00c97f72714878d8354ac9ea4f021632f5))
51-
* 잘못된 형식의 문서 제거 ([c59429b](https://github.com/KubrickCode/loa-work/commit/c59429bbebd4f3d64882531fba8747c73cf02259))
52-
* 저장 시와 lint 실행 시 포맷팅이 달라지는 문제 해결 ([563316e](https://github.com/KubrickCode/loa-work/commit/563316e9bb5435a4a7b6ed7925066c63cc2e2d57))
53-
* 커밋 전 린트 오류 발견이 늦어 재작업이 발생하는 문제 개선 ([8b626bf](https://github.com/KubrickCode/loa-work/commit/8b626bfeb6530d53a25863f3114518b5eaab1e78))
54-
* 패키지 매니저를 yarn에서 pnpm으로 마이그레이션 ([c596e11](https://github.com/KubrickCode/loa-work/commit/c596e11daf1b7f4e70d8d89a93a5415140c86011))
28+
- Claude Code 터미널명 업데이트 ([c8e446f](https://github.com/KubrickCode/loa-work/commit/c8e446f1cb54c468f8fe2c02cf88c9da135400fc))
29+
- Debian trixie의 moby-cli 미지원으로 인한 docker-in-docker 빌드 실패 문제 수정 ([c1c39a7](https://github.com/KubrickCode/loa-work/commit/c1c39a755420fc69ad0c1890efd1e410b540b0a0))
30+
- dependabot 커밋 메시지 규칙 변경 ([6003625](https://github.com/KubrickCode/loa-work/commit/6003625288666de3a162cfc01b133c4ba9c1f894))
31+
- **deps:** Bump vite in /src/backend ([d9370f2](https://github.com/KubrickCode/loa-work/commit/d9370f2036e3ddd94cbcce0ca902d3236a32e2e0))
32+
- DevContainer rebuild 시 Claude Code 재로그인 문제 해결 ([1379437](https://github.com/KubrickCode/loa-work/commit/13794376d560dc3293016667c72e6c7396df7bcc))
33+
- Docker 빌드 컨텍스트 경로 오류로 인한 배포 실패 ([f95902e](https://github.com/KubrickCode/loa-work/commit/f95902e7442ca93ca2628eaeb314933e89fa78e7))
34+
- frontend lint 명령어 fix 추가 ([8624c23](https://github.com/KubrickCode/loa-work/commit/8624c23cd5de102ed18c7145207a5a5fbcbf0b6e))
35+
- generated.tsx 파일이 husky lint-staged 스킵하도록 수정 ([7a19a8d](https://github.com/KubrickCode/loa-work/commit/7a19a8d3e26241ed669ed6a7a7f67e5bad2fcce3))
36+
- git 액션 버튼 터미널명 설정 ([84e83b1](https://github.com/KubrickCode/loa-work/commit/84e83b133fc33a4198f5a16978684303a2906157))
37+
- GitHub Actions에서 semantic-release 커밋 시 husky 비활성화 ([f524083](https://github.com/KubrickCode/loa-work/commit/f524083dca50cb013878728c928ca9dedd249bd3))
38+
- gitignore 업데이트 ([de2127b](https://github.com/KubrickCode/loa-work/commit/de2127b7c624d92826d66a50e879a943cffc8a00))
39+
- PR 작성자가 자신을 검토자로 추가하려고 할 때 발생하는 오류 수정 ([122edbe](https://github.com/KubrickCode/loa-work/commit/122edbe30c80c4b29e17a04ae4b4485b9f45c615))
40+
- runtime 이미지에서 Prisma 클라이언트 생성 누락 문제 해결 ([10575d9](https://github.com/KubrickCode/loa-work/commit/10575d9a8903fc507f08e0ff7d8bcdf96cbed304))
41+
- semantic-release 의존성 및 설정 추가 ([61769ba](https://github.com/KubrickCode/loa-work/commit/61769ba9a243095aa0e093cd76f1025693e866ac)), closes [#177](https://github.com/KubrickCode/loa-work/issues/177)
42+
- semantic-release 자동화를 위한 릴리즈 프로세스 변경 ([0b8c773](https://github.com/KubrickCode/loa-work/commit/0b8c77357138b3e670b1c74766b2cf9cbafbd2d7)), closes [#177](https://github.com/KubrickCode/loa-work/issues/177)
43+
- 글로벌 환경변수 설정 ([9282297](https://github.com/KubrickCode/loa-work/commit/92822979d06bf5ea17950371bd302c44e7f3d194))
44+
- 기존 릴리즈 히스토리를 CHANGELOG.md에 추가 ([7cb4900](https://github.com/KubrickCode/loa-work/commit/7cb49004132d071a122d850ee3a6020b2931447f)), closes [#177](https://github.com/KubrickCode/loa-work/issues/177)
45+
- 누락된 codegen 적용 ([7bfb370](https://github.com/KubrickCode/loa-work/commit/7bfb37067c85864b2d510f7b458c3e06025cbe15))
46+
- 누락된 의존성 추가 ([bf85562](https://github.com/KubrickCode/loa-work/commit/bf8556278c54da5d8d52091d46f5bc51e0e68833))
47+
- 디스코드 웹훅 URL 환경변수명 변경 ([9afd41d](https://github.com/KubrickCode/loa-work/commit/9afd41d9ed44da2cf278ba8e7d904c17ad4ff520))
48+
- 워크플로우 전용 문서는 git에 업로드되지 않도록 수정 ([334607b](https://github.com/KubrickCode/loa-work/commit/334607b338f5b64fbbfadfa8352f10201bfca3e6))
49+
- 워크플로우 커맨드 이중 언어 문서 생성 기능 추가 ([10f20db](https://github.com/KubrickCode/loa-work/commit/10f20db054be81136f7d56bf8b4373f7818f70ef))
50+
- 자주 사용하는 MCP 서버 추가 ([e8382c0](https://github.com/KubrickCode/loa-work/commit/e8382c00c97f72714878d8354ac9ea4f021632f5))
51+
- 잘못된 형식의 문서 제거 ([c59429b](https://github.com/KubrickCode/loa-work/commit/c59429bbebd4f3d64882531fba8747c73cf02259))
52+
- 저장 시와 lint 실행 시 포맷팅이 달라지는 문제 해결 ([563316e](https://github.com/KubrickCode/loa-work/commit/563316e9bb5435a4a7b6ed7925066c63cc2e2d57))
53+
- 커밋 전 린트 오류 발견이 늦어 재작업이 발생하는 문제 개선 ([8b626bf](https://github.com/KubrickCode/loa-work/commit/8b626bfeb6530d53a25863f3114518b5eaab1e78))
54+
- 패키지 매니저를 yarn에서 pnpm으로 마이그레이션 ([c596e11](https://github.com/KubrickCode/loa-work/commit/c596e11daf1b7f4e70d8d89a93a5415140c86011))
5555

5656
# Changelog
5757

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "loa-work",
3-
"version": "0.3.4",
3+
"version": "0.4.0",
44
"description": "Lost Ark Content Hourly Wage Insight Platform",
55
"repository": {
66
"type": "git",
@@ -14,8 +14,10 @@
1414
"devDependencies": {
1515
"@semantic-release/changelog": "6.0.3",
1616
"@semantic-release/commit-analyzer": "13.0.0",
17+
"@semantic-release/exec": "7.1.0",
1718
"@semantic-release/git": "10.0.1",
1819
"@semantic-release/github": "11.0.1",
20+
"@semantic-release/npm": "13.1.2",
1921
"@semantic-release/release-notes-generator": "14.0.1",
2022
"conventional-changelog-conventionalcommits": "8.0.0",
2123
"husky": "9.1.7",

0 commit comments

Comments
 (0)