[Stage 1.6] Migrate and validate the v2 release workflow for the monorepo

Đang mở
#333 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
38/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
javascript, playwright, react, typescript
Lĩnh vực
build-system, ci-cd, devops, release

Hướng nghiên cứu

Start with release-v2.yml and the Stage 1 pnpm workspace/package build configuration, then trace public-package selection, versioning, approval, and npm publishing. Review the release-related tests and consumer fixtures, especially the vanilla JavaScript, React, and Playwright entry points. Done means a v2 prerelease is published only under next after approval, all versions and artifacts agree, private packages cannot leak into published dependencies, and the stable cutover is covered by a dry-run.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Parent: #318

Goal

Prove that v2 can be released and consumed from npm after the repository becomes a pnpm monorepo.

The workflow is a production delivery path, not only a build check.

Scope

  • Keep release-v2.yml triggered by the v2 branch before cutover.
  • Replace root-package npm assumptions with the Stage 1 pnpm workspace and package build model.
  • Build and publish only public packages.
  • Prevent private workspace packages from being published.
  • Prevent unresolved imports or published dependencies on private packages.
  • Permit only 2.x prereleases from v2.
  • Publish under next; never update latest before cutover.
  • Keep release creation behind a reviewed release pull request or equivalent approval.
  • Verify generated versions, changelogs, Git tags, GitHub Releases, package manifests, and npm artifacts.
  • Install the published prerelease from npm in clean vanilla JavaScript, React, and applicable Playwright consumer fixtures.
  • Document the cutover-only configuration change from v2/next to main/latest.
  • Provide a dry-run for the future stable v2 release path.

Acceptance criteria

  • release-v2.yml runs from v2 using pnpm and the monorepo package graph.
  • Only intended public packages are publishable.
  • A 2.x prerelease is published under next after explicit approval.
  • The prerelease does not update latest.
  • Version, changelog, tag, GitHub Release, manifest, and npm artifact agree.
  • Published packages contain no unresolved private-package imports or dependencies.
  • Clean consumer fixtures install from npm without workspace access.
  • Root, React, and applicable Playwright entry points pass runtime and type checks.
  • The main/latest cutover configuration is covered by a safe dry-run.
Ngôn ngữ chính
TypeScript
Star
145
Fork
12
Merge trung bình
1 ngày 14 giờ
Pull request đã merge (30 ngày)
43

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của gravity-ui/graph

Tất cả issue của gravity-ui/graph

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.