Skip to content

Commit e9f5cd3

Browse files
committed
ci: 새 버전을 인식하게 수정
1 parent dd9fa7a commit e9f5cd3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/deploy-dev.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,11 @@ jobs:
139139
run: |
140140
OUTPUT=$(npm exec --no -- semantic-release --no-ci)
141141
echo "$OUTPUT"
142-
VERSION=$(echo "$OUTPUT" | grep -oP 'Published (?:pre)?release v\K[0-9.a-z-]+' | head -n 1)
142+
VERSION=$(echo "$OUTPUT" | grep -oP 'Published (?:pre)?release v?\K[0-9.a-z.-]+' | head -n 1)
143+
if [[ -z "$VERSION" ]]; then
144+
VERSION=$(echo "$OUTPUT" | grep -oP 'The next release version is \K[0-9.a-z.-]+' | head -n 1)
145+
fi
146+
143147
if [[ -z "$VERSION" ]]; then
144148
echo "릴리즈할 새로운 버전이 없습니다. 배포를 건너뜁니다."
145149
echo "HAS_VERSION=false" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)