Repository navigation
Release: publish a vX.Y.Z-rc.N tag as a signed pre-release that is never the latest - #990
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Developer ID 서명과 공증(#977)은
release.yml에서만 돌고, 그 워크플로는vX.Y.Z태그만 받아 latest로 공개합니다.그래서 출시 전에 서명된 앱으로 알림 같은 것을 확인할 길이 없었습니다.
이제
vX.Y.Z-rc.N태그도 같은 게이트(main verify, 워크스페이스 테스트, 서명·공증된 macOS 패키지, 자산 게이트)를 거쳐 pre-release로 공개되고, latest로는 절대 표시되지 않습니다.릴리스 종류는 태그 하나에서만 읽습니다:
releaseKind(scripts/check-release-assets.mjs)가 워크플로의 태그 검사, 자산 이름, 초안의prerelease, 초안 재확인, 공개 호출(make_latest)에 모두 쓰입니다.stable 태그의 동작은 그대로이고, withhide.dev 다운로드 링크는 계속 pre-release를 무시합니다(
site/downloads.js변경 없음).Review
-rc.N하나로 한정했습니다(-beta,-alpha는 거부). 더 필요하면releaseKind정규식 한 곳만 넓히면 됩니다.scripts/release-draft.mjs- failure path. 기존 안전장치(정확한 초안, 출처 marker, 덮어쓰기 없음)는 그대로이고,prerelease: false고정 비교가 태그에서 나온 값과의 비교로 바뀌었습니다. 다른 종류의 초안은 재사용하지 않고 멈춥니다..github/workflows/release.yml- bash 정규식 대신releaseKind로 태그를 검사하려고pnpm/setup-node를 태그 검사 앞으로 옮겼습니다.Evidence
node --test scripts/tests/release-draft.test.mjs11/11. 새 두 테스트가 GitHub API 계약으로 확인: rc 태그의 생성 payloadprerelease: true, 자산 6개hide-v0.4.0-rc.1-*, 공개 PATCHmake_latest: "false"; 다른 종류 초안은 쓰기 없이 멈추고, 공개 응답의prerelease가 다르면 실패.python3 -m unittest scripts/tests/test_release_assets.py scripts/tests/test_release_draft.py13/13. rc 패키지 통과, rc 초안 재개, 종류가 다른 초안 거부, 잘못된 rc 태그 10종 거부.node --test site/tests/downloads.test.mjs7/7,test_ci_plan.py통과. 접미사 붙은 버전(0.0.0-ci.N)은 PRpackagelane에서 이미 세 시스템 모두 패키징됩니다.v0.4.0-rc.1태그에서만 증명됩니다. 특히CFBundleShortVersionString이0.4.0-rc.1인 앱의 공증은 그 실행에서 처음 확인됩니다(CFBundleVersion은0.4.0).releaseenvironment의 태그 정책은v*라서 rc 태그도 서명 secret에 닿는 것을 API로 읽어 확인했을 뿐, 실행으로는 아직 확인하지 않았습니다.