Skip to content

Commit 8943d29

Browse files
authored
Merge pull request #191 from vue-pivottable/feat/release-branch-workflow
feat: 릴리즈 브랜치를 활용한 새로운 배포 워크플로우 구현
2 parents d38c718 + 1b0b6cc commit 8943d29

35 files changed

+2178
-679
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"vue-pivottable": patch
3+
---
4+
5+
feat: 릴리즈 브랜치를 활용한 새로운 배포 워크플로우 구현
6+
7+
- main 브랜치 보호 규칙을 유지하면서 자동 릴리즈 가능
8+
- 각 릴리즈마다 release/v* 브랜치 생성
9+
- 독립적인 패키지 빌드 및 배포 지원

.github/workflows/backup/create-release-pr.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/backup/release-lazy-table-renderer.yml

Lines changed: 0 additions & 77 deletions
This file was deleted.

.github/workflows/backup/release-plotly-renderer.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.github/workflows/backup/release-vue-pivottable.yml

Lines changed: 0 additions & 73 deletions
This file was deleted.

.github/workflows/pr-check.yml

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
name: PR Check
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
- develop
8+
9+
jobs:
10+
lint-and-type-check:
11+
name: Lint and Type Check
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '22.10.0'
21+
22+
- name: Setup pnpm
23+
uses: pnpm/action-setup@v2
24+
with:
25+
version: latest
26+
27+
- name: Install dependencies
28+
run: pnpm install
29+
30+
- name: Run ESLint
31+
run: |
32+
echo "Linting main package..."
33+
pnpm lint
34+
echo "Linting all workspace packages..."
35+
pnpm -r lint || true # Continue even if some packages don't have lint script
36+
37+
- name: Run TypeScript type check
38+
run: |
39+
echo "Checking main package..."
40+
pnpm typecheck
41+
echo "Checking all workspace packages..."
42+
pnpm -r typecheck || true # Continue even if some packages don't have typecheck script
43+
44+
- name: Check for changesets
45+
run: |
46+
if [ -n "$(ls -A .changeset/*.md 2>/dev/null | grep -v README.md)" ]; then
47+
echo "✅ Changeset found"
48+
else
49+
echo "⚠️ No changeset found. Please add a changeset with 'pnpm changeset add'"
50+
echo " This is required for all changes that affect published packages."
51+
exit 1
52+
fi
53+
54+
build:
55+
name: Build Check
56+
runs-on: ubuntu-latest
57+
steps:
58+
- name: Checkout
59+
uses: actions/checkout@v4
60+
61+
- name: Setup Node.js
62+
uses: actions/setup-node@v4
63+
with:
64+
node-version: '22.10.0'
65+
66+
- name: Setup pnpm
67+
uses: pnpm/action-setup@v2
68+
with:
69+
version: latest
70+
71+
- name: Install dependencies
72+
run: pnpm install
73+
74+
- name: Build all packages
75+
run: pnpm build:all
76+
77+
- name: Check build output
78+
run: |
79+
# Check main package
80+
if [ ! -d "dist" ]; then
81+
echo "❌ Main package build output not found"
82+
exit 1
83+
fi
84+
85+
# Check sub-packages
86+
for pkg in packages/*/; do
87+
if [ -d "$pkg" ] && [ -f "$pkg/package.json" ]; then
88+
if [ ! -d "$pkg/dist" ]; then
89+
echo "❌ Build output not found for $pkg"
90+
exit 1
91+
fi
92+
fi
93+
done
94+
95+
echo "✅ All packages built successfully"

0 commit comments

Comments
 (0)