Skip to content

Conversation

@DaleSeo
Copy link
Member

@DaleSeo DaleSeo commented Jan 6, 2026

변경 사항

PR #718 병합 후에 태깅을 시도했는데 워크플로우가 실패하였습니다.

image

https://github.com/DaleStudy/daleui/actions/runs/20702448321

PR 병합 전 피쳐 브랜치 상대로 테스트할 때는 잘 됐던 워크플로우가 실패한 이유는 main 브랜치에 직접 push를 금지하는 저장소의 브랜츠 보호 규칙을 위반하기 때문입니다.

이 문제를 해결하기 위해서 패키지 버전을 올리고 Release PR을 자동으로 생성하기 위한 release-pr.yml 워크플로우를 추가하고, 기존 tagging.yml 플로우는 릴리즈 PR 머지 시 자동으로 수행되고 태그만 push하도록 수정하였습니다.

목적

이렇게 워크플로우를 분리하게 되면, 패키지 버전 변경도 다른 변경처럼 PR 병합을 통해 main 브랜치로 병합될 수 있어서 저장소의 브랜츠 보호 규칙을 준수하게 됩니다. 여전히 패키지 변경과 GitHub Actions 내에서 수행되기 때문에 개발자의 실수를 최소화합니다. 릴리즈 PR을 생성하고 리뷰해야한다는 부담이 생기지만, 이 것은 보는 시각에 따라서 장점이 될 수 있을 것입니다. 오히려 릴리즈 PR없이 패키지 발행을 하는 예전 프로세스가 지나치게 자동화를 하여 관행이 어긋나는 느낌이 있었습니다. PR을 통해서 릴리즈 내용을 검토할 수 있으니 배포 프로세스가 좀 더 안정화가 되면 Draft Release 단계를 생략하는 것을 나중에 고려해볼 수 있을 것 같네요.

리뷰어에게

수동으로 테스트를 진행하여 새로운 워크플로우가 의도대로 작동함을 확인하였습니다.

$ gh workflow run release-pr.yml --ref 725-release-pr --field bump=patch

PR 작성자 체크 리스트

UI 변경 없음

  • UI Review를 요청하고 검토를 받았나요?
  • UI Tests를 진행했나요?

@codecov
Copy link

codecov bot commented Jan 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@codecov
Copy link

codecov bot commented Jan 7, 2026

Bundle Report

Bundle size has no change ✅

- release-pr.yml: 버전 bump PR 생성 (수동 트리거)
- tagging.yml: release/ 브랜치 PR 머지 시 자동 태그 생성 및 릴리스 발행
@DaleSeo DaleSeo marked this pull request as ready for review January 7, 2026 00:24
@DaleSeo DaleSeo requested a review from a team as a code owner January 7, 2026 00:24
Copy link
Contributor

@hyoseong1994 hyoseong1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pr 자동화 방법에 대해 고민중이었는데 이렇게 바로 작업해주시다니 감사합니다!

Comment on lines 29 to 30
- name: Bump version
run: npm version ${{ inputs.bump }} --no-git-tag-version
Copy link
Contributor

@hyoseong1994 hyoseong1994 Jan 7, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bump version가 main에서 이루어지는거같은데 그러면 origin/main 이랑 달라질것 같습니다.
스크립트 중에 git switch -c "$BRANCH" origin/main 이 부분 이후에 bump version을 진행해야 정상동작 할 것으로 예상됩니다.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

예상과 다르게 정상동작하는거 같네요 신기하네요

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hyoseong1994 님, --no-git-tag-version 옵션은 npm version 명령어가 기본적으로 하는 커밋과 태그 생성을 모두 건너뛰고, package.json 내의 버전만 수정합니다. 즉, 파일 변경사항이 Working directory에 남아있어요. Git은 브랜치를 바꿔도 Stage 영역으로 넘어오지 않는 변경사항을 버리지 않거든요. 아무래도 옵션 이름 때문에 오해하기 쉬울 것 같아서 주석을 추가해놓겠습니다.

Copy link
Contributor

@hyoseong1994 hyoseong1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

정상동작하니 승인하도록하겠습니다.

@DaleSeo DaleSeo added this pull request to the merge queue Jan 7, 2026
Merged via the queue into main with commit d69bb0a Jan 7, 2026
10 checks passed
@DaleSeo DaleSeo deleted the 725-release-pr branch January 7, 2026 23:56
@github-actions github-actions bot mentioned this pull request Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

다시 릴리즈 PR 사용하도록 Tagging 워크플로우 변경

3 participants