Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
b0c4699
⚙️ Chore: changesets 설치
aahreum Mar 1, 2026
cbb17d3
Merge branch 'main' of https://github.com/team-garibee/study into ahr…
aahreum Mar 1, 2026
eab0901
⚙️ Chore: 크로마틱 설치
aahreum Mar 2, 2026
67e0a09
⚙️ Chore: 크로마틱 실행파일 추가
aahreum Mar 2, 2026
caa879f
⚙️ Chore: ui 빌드 명령어 수정
aahreum Mar 2, 2026
21ecbed
⚙️ Chore: CI workflows 추가
aahreum Mar 2, 2026
950f9fb
🔥 Remove: pre-commit 검사 ls-lint 삭제
aahreum Mar 2, 2026
a551421
⚙️ Chore: changeset 설정 및 스크립트 추가
aahreum Mar 2, 2026
58b32ee
⚙️ Chore: 릴리즈 검증 단계 워크플로우 추가
aahreum Mar 2, 2026
cf2a31b
⚙️ Chore: 릴리즈 워크플로우 추가
aahreum Mar 2, 2026
dfdc75d
⚙️ Chore: 워크플로우 이모지 추가
aahreum Mar 2, 2026
61ebe11
⚙️ Chore: 테스트용 branches 추가
aahreum Mar 2, 2026
3152ac2
🎨 Style: 프리티어 포맷팅 적용
aahreum Mar 2, 2026
1c2450e
⚙️ Chore: workingDir 추가
aahreum Mar 2, 2026
89ecb2a
⚙️ Chore: 테스트 파일 없을 경우 ci 에러 방지
aahreum Mar 2, 2026
756cac7
⚙️ Chore: fetch-depth 추가
aahreum Mar 2, 2026
e86a911
⚙️ Chore: main fetch 추가
aahreum Mar 2, 2026
3b6b493
🎨 Style: 테스트용 스토리 파일 추가
aahreum Mar 2, 2026
7cefdee
⚙️ Chore: 디스코드 아바타 url 추가
aahreum Mar 2, 2026
f4b6cd3
⚙️ Chore: 디스코드 아바타 이미지 추가
aahreum Mar 2, 2026
d5a2913
🔥 Remove: 테스트 코드 제거
aahreum Mar 2, 2026
318e7e9
⚙️ Chore: 디스코드 아바타 url 변경
aahreum Mar 2, 2026
b7f3dc7
⚙️ Chore: chageset empty 파일 추가
aahreum Mar 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.2/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
2 changes: 2 additions & 0 deletions .changeset/three-needles-stand.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Binary file added .github/assets/discordAvatar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
82 changes: 82 additions & 0 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: "🎨 Chromatic"

on:
pull_request:
branches:
- dev
paths:
- 'apps/storybook/**'
- 'packages/**'

jobs:
chromatic-deploy:
runs-on: ubuntu-latest

permissions:
contents: read
pull-requests: write

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.26.1
run_install: false

- name: Setup node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Publish to Chromatic
id: chromatic
uses: chromaui/action@latest
with:
workingDir: apps/storybook
exitZeroOnChanges: true
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Comment PR with Storybook link
uses: thollander/actions-comment-pull-request@v2
with:
message: |
🎨 **스토리북 배포 링크 확인**

- 🔗 Storybook: ${{ steps.chromatic.outputs.storybookUrl }}
- 🧩 Build: ${{ steps.chromatic.outputs.buildUrl }}

- name: Publish Summary
run: |
echo "## 🎨 Chromatic 결과 요약" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "| 항목 | 값 |" >> $GITHUB_STEP_SUMMARY
echo "| --- | --- |" >> $GITHUB_STEP_SUMMARY
echo "| 🔗 Storybook Preview | ${{ steps.chromatic.outputs.storybookUrl }} |" >> $GITHUB_STEP_SUMMARY
echo "| 🧩 Build Page | ${{ steps.chromatic.outputs.buildUrl }} |" >> $GITHUB_STEP_SUMMARY
echo "| 📦 Story Count | ${{ steps.chromatic.outputs.componentCount }} |" >> $GITHUB_STEP_SUMMARY
echo "| 🎯 Changed Stories | ${{ steps.chromatic.outputs.changeCount }} |" >> $GITHUB_STEP_SUMMARY

- name: Discord Webhook
uses: tsickert/discord-webhook@v7.0.0
with:
webhook-url: ${{ secrets.DISCORD_WEBHOOK }}
username: "Chromatic Bot - 머먹지"
avatar-url: "https://raw.githubusercontent.com/team-garibee/study/main/.github/assets/discordAvatar.png"
content: |
🎨 **Chromatic 배포 완료**

📌 PR: ${{ github.event.pull_request.title }}
👤 Author: ${{ github.event.pull_request.user.login }}

🔗 Storybook: ${{ steps.chromatic.outputs.storybookUrl }}
🧩 Build: ${{ steps.chromatic.outputs.buildUrl }}
52 changes: 52 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: "🧪 CI"

on:
pull_request:
branches:
- dev
- main

jobs:
validate:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
version: 10.26.1
run_install: false

- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- run: pnpm install --frozen-lockfile

- name: Cache Turbo
uses: actions/cache@v4
with:
path: .turbo
key: turbo-${{ runner.os }}-${{ github.ref }}
restore-keys: |
turbo-${{ runner.os }}-

- name: 🔎 LS-Lint
run: pnpm ls-lint

- name: 🎨 Format Check
run: pnpm format:check

- name: 🧹 Lint
run: pnpm turbo run lint

- name: 🧠 Typecheck
run: pnpm turbo run typecheck

- name: 🧪 Test
run: pnpm turbo run test

- name: 🏗 Build
run: pnpm turbo run build
52 changes: 52 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: "🚀 Release"

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
version: 10.26.1
run_install: false

- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- run: pnpm install --frozen-lockfile

- name: 🏗 Build before publish
run: pnpm turbo run build

- name: 🚀 Create Release PR or Publish
uses: changesets/action@v1
with:
version: pnpm changeset version
publish: pnpm changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: 📢 Discord Notification
if: steps.changesets.outputs.published == 'true'
uses: tsickert/discord-webhook@v7.0.0
with:
webhook-url: ${{ secrets.DISCORD_WEBHOOK }}
username: "Release Bot - 머먹지"
avatar-url: "https://raw.githubusercontent.com/team-garibee/study/main/.github/assets/discordAvatar.png"
content: |
🚀 **머먹지 npm 배포 완료**

📦 Published Packages:
${{ steps.changesets.outputs.publishedPackages }}

🔗 npm: https://www.npmjs.com/org/mumukji
46 changes: 46 additions & 0 deletions .github/workflows/releaseReady.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: "🧑‍⚖️ Release Ready"

on:
pull_request:
branches:
- main

jobs:
release-ready:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch origin main:main

- uses: pnpm/action-setup@v4
with:
version: 10.26.1
run_install: false

- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm

- run: pnpm install --frozen-lockfile

- name: 🔍 Detect package source changes
id: changes
uses: dorny/paths-filter@v3
with:
filters: |
release:
- 'packages/**'
- '!packages/**/*.test.ts'
- '!packages/**/*.test.tsx'
- '!packages/**/*.stories.tsx'
- '!packages/**/*.md'
- '!packages/**/*.stories.mdx'
- '!packages/**/*.mdx'

- name: 📦 Require Changeset
if: steps.changes.outputs.release == 'true'
run: pnpm changeset status
6 changes: 0 additions & 6 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
echo "🔎 파일/폴더 네이밍 규칙 검사 (ls-lint)..."
pnpm exec ls-lint || {
echo "⚠️ ls-lint 실패: 파일/폴더 네이밍 규칙을 확인해주세요."
exit 1
}

echo "🔎 staged 파일에 대한 Lint 검사..."
pnpm exec lint-staged || {
echo "⚠️ Lint 검사에서 오류가 발생했습니다. 커밋이 중단됩니다."
Expand Down
2 changes: 2 additions & 0 deletions .ls-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ ignore:
- '**/.storybook'
- storybook-static
- '**/storybook-static'
- .github
- .changeset
5 changes: 3 additions & 2 deletions apps/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"dev": "storybook dev -p 6006",
"build": "storybook build",
"typecheck": "tsc --noEmit",
"chromatic": "chromatic --project-token=$CHROMATIC_PROJECT_TOKEN",
"chromatic": "chromatic",
"clean": "rm -rf storybook-static",
"test": "vitest run"
"test": "vitest run --passWithNoTests"
},
"dependencies": {
"@mumukji/icons": "workspace:*",
Expand All @@ -28,6 +28,7 @@
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.4",
"@vitest/browser-playwright": "^4.0.18",
"chromatic": "^15.2.0",
"playwright": "^1.58.2",
"storybook": "^10.2.13",
"vite": "^7.3.1",
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"test:storybook": "turbo run test --filter=@mumukji/storybook",
"chromatic": "turbo run chromatic --filter=@mumukji/storybook",
"ls-lint": "ls-lint",
"prepare": "husky"
"prepare": "husky",
"changeset": "changeset",
"changeset:status": "changeset status"
},
"lint-staged": {
"**/*.{ts,tsx}": [
Expand All @@ -36,6 +38,7 @@
]
},
"devDependencies": {
"@changesets/cli": "^2.29.8",
"@commitlint/cli": "^20.4.2",
"@eslint/js": "^9.39.3",
"@ls-lint/ls-lint": "^2.3.1",
Expand Down
6 changes: 5 additions & 1 deletion packages/icons/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ export default [
preserveModulesRoot: 'src',
},
],
plugins: [resolve(), commonjs(), typescript({ tsconfig: './tsconfig.json' })],
plugins: [
resolve(),
commonjs(),
typescript({ tsconfig: './tsconfig.json' }),
],
},
{
input: 'dist/types/index.d.ts',
Expand Down
6 changes: 5 additions & 1 deletion packages/tokens/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ export default [
sourcemap: true,
},
],
plugins: [resolve(), commonjs(), typescript({ tsconfig: './tsconfig.json' })],
plugins: [
resolve(),
commonjs(),
typescript({ tsconfig: './tsconfig.json' }),
],
},
];
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"scripts": {
"watch": "rollup -cw",
"typecheck": "tsc --noEmit",
"build": "tsc -p tsconfig.build.json && rollup -c && mv dist/esm/index.css dist/index.css && rm -rf dist/types",
"build": "tsc -p tsconfig.build.json && rollup -c && ([ -f dist/esm/index.css ] && mv dist/esm/index.css dist/index.css || true) && rm -rf dist/types",
"clean": "rm -rf dist",
"lint": "eslint .",
"lint:fix": "eslint --fix ."
Expand Down
Loading