Skip to content

chore: 릴리즈 버전을 확장 패키지에 반영#5

Merged
dev-minsoo merged 1 commit into
mainfrom
chore/sync-manifest-version
Apr 20, 2026
Merged

chore: 릴리즈 버전을 확장 패키지에 반영#5
dev-minsoo merged 1 commit into
mainfrom
chore/sync-manifest-version

Conversation

@dev-minsoo

Copy link
Copy Markdown
Owner

요약

semantic-release가 계산한 릴리즈 버전을 Chrome 확장 패키지에도 반영하도록 릴리즈 플로우를 수정했습니다.

기존에는 GitHub Release 태그는 v1.1.0처럼 올라가더라도, Release asset에 첨부되는 algorithmhub-webstore.zip 안의 manifest.json 버전은 기존 값으로 남을 수 있었습니다. Chrome Web Store 업데이트에는 manifest.jsonversion 증가가 필요하므로, 릴리즈 시점에 계산된 버전을 빌드 전에 반영하도록 변경했습니다.

주요 변경사항

  • scripts/set-release-version.mjs 추가
    • semantic-release가 계산한 버전을 manifest.jsonpackage.json에 반영
  • @semantic-release/exec prepare 단계 추가
    • 버전 반영
    • 빌드 실행
    • algorithmhub-webstore.zip 생성
  • release workflow에서 중복 build/zip 단계를 제거
    • 릴리즈가 실제로 생성될 때만 버전 반영과 zip 생성 수행

기대 효과

  • GitHub Release tag와 Chrome Web Store 제출용 zip의 manifest.json 버전이 일치함
  • feat: 릴리즈 시 v1.1.0이면 zip 내부 manifest도 1.1.0
  • fix: 릴리즈 시 v1.0.1이면 zip 내부 manifest도 1.0.1

검증

  • node scripts/set-release-version.mjs 9.9.9 임시 실행 후 build 확인
  • npm run lint 통과
  • npm run build 통과

@dev-minsoo dev-minsoo merged commit c692b39 into main Apr 20, 2026
1 check passed
@dev-minsoo dev-minsoo deleted the chore/sync-manifest-version branch April 20, 2026 12:40
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant