Skip to content

Commit d29dbcb

Browse files
authored
fix: 베타 타임스탬프 교체 로직 개선 및 시나리오 테스트 (#248)
**워크플로우 개선:** - ensure_beta_version 함수에서 기존 베타 타임스탬프 교체 로직 추가 - 베타 중복 방지 (X.Y.Z-beta.abc-beta.def 형태 방지) - base_version 추출 후 새로운 타임스탬프 적용 **테스트 시나리오:** - main PR 승인 전 상태에서 추가 changeset 테스트 - 베타 타임스탬프 교체 동작 확인 - main PR 자동 업데이트 확인
1 parent 7de91e8 commit d29dbcb

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
"vue-pivottable": patch
3+
"@vue-pivottable/plotly-renderer": patch
4+
---
5+
6+
test: 베타 타임스탬프 교체 시나리오 테스트
7+
8+
**현재 상황:**
9+
- develop 브랜치에 이미 베타 버전들이 존재
10+
- main PR #247이 승인되지 않은 상태
11+
- 추가 changeset으로 베타 타임스탬프 교체 테스트
12+
13+
**기대 결과:**
14+
- vue-pivottable: 1.1.6-beta.OLD → 1.1.7-beta.NEW
15+
- plotly-renderer: 2.0.7-beta.OLD → 2.0.8-beta.NEW
16+
- lazy-table-renderer: 1.1.7-beta.OLD (변경 없음, changeset 없음)
17+
18+
**테스트 목표:**
19+
- 베타 중복 방지 (1.1.7-beta.xxx-beta.yyy 같은 형태 방지)
20+
- 새로운 타임스탬프로 교체
21+
- main PR #247 자동 업데이트

.github/workflows/release-develop.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,16 @@ jobs:
7575
TIMESTAMP=$(date +%s)
7676
CHANGED_PACKAGES=""
7777
78-
# Function to ensure beta version
78+
# Function to ensure beta version with timestamp replacement
7979
ensure_beta_version() {
8080
local current_version=$1
8181
local timestamp=$2
8282
83-
# If already has beta suffix, keep it
83+
# If already has beta suffix, replace the timestamp
8484
if [[ "$current_version" == *"-beta."* ]]; then
85-
echo "$current_version"
85+
# Extract base version before first -beta
86+
local base_version=$(echo "$current_version" | sed 's/-beta\..*//')
87+
echo "${base_version}-beta.${timestamp}"
8688
else
8789
# Add beta suffix
8890
echo "${current_version}-beta.${timestamp}"

0 commit comments

Comments
 (0)