Skip to content

ci: 이미 배포된 버전은 스테이징을 건너뛰도록 수정 - #69

Open
CirnoV wants to merge 1 commit into
mainfrom
ci/skip-published-staging
Open

CirnoV wants to merge 1 commit into
mainfrom
ci/skip-published-staging

Conversation

@CirnoV

@CirnoV CirnoV commented Nov 9, 2026

Copy link
Copy Markdown
Member

문제

#68 머지 후 Release 워크플로가 실패했습니다. (run)

Failed to stage package @portone/react-native-sdk@0.8.0 (status 409 Conflict): {"error":"Cannot stage previously published version \"0.8.0\"."}

changeset이 없는 모든 main push에서 publish-script가 실행되는데, pnpm stage publish는 이미 배포된 버전도 그대로 스테이징하려다 409로 실패합니다.

변경

  • pnpm stage publish에 --recursive를 추가해 이미 배포된 버전은 건너뛰도록 했습니다.
  • --report-summary로 pnpm-publish-summary.json을 남기고, 실제로 스테이징된 패키지가 있을 때만 Slack 알림을 보내도록 했습니다.

확인

로컬 dry-run (pnpm stage publish -r --dry-run --no-git-checks --report-summary)

  • 배포된 버전(0.7.0): There are no new packages that should be published, exit 0, publishedPackages: []
  • 미배포 버전(임시 9.9.9): would stage, summary에 패키지 기록됨

🤖 Generated with Claude Code

This branch has not been deployed

No deployments
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.

1 participant