Skip to content

Commit f856540

Browse files
authored
Merge pull request #195 from vue-pivottable/fix/build-error-handling
fix: 빌드 오류 처리 및 순서 개선
2 parents 5420e78 + 17aa93a commit f856540

File tree

4 files changed

+534
-525
lines changed

4 files changed

+534
-525
lines changed

.changeset/fix-build-order.md

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+
fix: 빌드 오류 처리 및 순서 개선
6+
7+
- set -e 추가로 빌드 실패 시 워크플로우 즉시 중단
8+
- 메인 패키지를 먼저 빌드하여 타입 선언 파일 생성
9+
- 하위 패키지들이 메인 패키지 타입을 참조할 수 있도록 순서 조정

.github/workflows/release-develop.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,12 @@ jobs:
9999
- name: Build packages
100100
if: steps.changesets-check.outputs.has_changesets == 'true'
101101
run: |
102-
echo "Building all packages..."
103-
pnpm build:all
102+
set -e # Exit immediately if any command fails
103+
echo "Building main package first..."
104+
pnpm build # Build main package first to generate type declarations
105+
106+
echo "Building sub-packages..."
107+
pnpm -r --filter './packages/*' build # Build sub-packages after main
104108
105109
- name: Create GitHub Pre-release
106110
if: steps.changesets-check.outputs.has_changesets == 'true'

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ jobs:
8585
done
8686
8787
- name: Create release branch
88+
id: create-release
8889
if: steps.check-versions.outputs.has_beta == 'true'
8990
run: |
9091
VERSION=${{ steps.check-versions.outputs.base_version }}

0 commit comments

Comments
 (0)