Skip to content

Commit 5ab3941

Browse files
committed
hotfix: 메인 패키지가 이미 stable일 때 버전 변경 시도하지 않도록 수정
1 parent 9ca363c commit 5ab3941

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,11 @@ jobs:
9595
- name: Update versions to stable
9696
if: steps.check-versions.outputs.has_beta == 'true'
9797
run: |
98-
# Update main package
99-
npm version ${{ steps.check-versions.outputs.base_version }} --no-git-tag-version
98+
# Update main package only if it has beta
99+
MAIN_VERSION=$(node -p "require('./package.json').version")
100+
if [[ $MAIN_VERSION == *"-beta"* ]]; then
101+
npm version ${{ steps.check-versions.outputs.base_version }} --no-git-tag-version
102+
fi
100103
101104
# Update sub-packages
102105
for pkg in packages/*/; do

0 commit comments

Comments
 (0)