Repository navigation
build: 3 つのパッケージを GitHub Packages に 1 つの版で公開する - #10
Merged
Merged
Conversation
- 3 つの package.json:
- private を外し、publishConfig (npm.pkg.github.com)、repository
(directory 付き。GitHub がパッケージをこのリポジトリにつなぐ)、license、
description を足す
- prepack でリポジトリの LICENSE を写し、postpack で消す
- release-please: リポジトリで 1 つの版を持ち、extra-files で 3 つの
package.json の version も上げる。変更履歴は prismtone から取り込んだ
コミットを含めない (bootstrap-sha は取り込みのマージ)
- CI: main への push で release-please を回す。リリースができたら
build:packages して 3 つを公開する。検査のジョブは PR でだけ回す
- tooling/packages.test.ts: 公開の設定 (registry、repository、license、
dist、版がそろっていること、release-please が 3 つとも上げること) を
確かめる (同じ版は出し直せないので、公開する前に止める)
pnpm pack で、workspace:* が同じ版に置き換わること、LICENSE が入り
テストのファイルが入らないことを確かめた。
Refs #4
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- ADR-0006: パッケージを 3 つに分け、ホストに頼むものは EditorHost で受け取る - ADR-0007: GitHub Packages に 1 つの版で、ビルド済みの ESM として配る (source 条件、Worker はホストが束ねる、モデルは editor-models、zod は dependencies のまま。lumorphia/prismtone#365 で peer が Docker で見えなかった) - ADR-0008: レシピの互換は足すだけ、読めなくする変更は major - ADR-0009: ホストに求めること (COOP / COEP、CSP、/models/、Tailwind の @source、Vite の設定、IndexedDB の名前) - README に GitHub Packages からの入れ方、AGENTS.md にリリースの流れ Refs #4 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
@lumorphia/editor-recipe/editor-engine/editor-reactを GitHub Packages に公開する仕組みを入れる (milestone「v0.1 パッケージの初版」)。#4 の完了条件 (実際に公開され、prismtone から入れられること) は、マージとリリースのあとに確かめる。計画から変えたこと
extra-filesで 3 つのpackage.jsonも同じ版にする (prismtone と同じ形)。パッケージ同士のworkspace:*は、公開のときに同じ版 (固定) に置き換わるnextタグは使わない:0.1.0-next.Nを先に出す予定だったが、prismtone での確かめには0.1.0をそのまま使う。問題があれば 0.1.1 を出すdependenciesのまま。peer にすると、workspace のまま本番用の依存だけを入れた prismtone の Docker で、recipe から zod が見えなかった (lumorphia/prismtone#365)。理由は ADR-0007変えたこと
privateを外したpublishConfig(npm.pkg.github.com) を足したrepositoryを足した。directory付きで、GitHub がパッケージをこのリポジトリにつなぐlicense、descriptionを足したprepackでリポジトリの LICENSE を写すようにしたbootstrap-shaは取り込みのマージ (f92c3e4)feat:(feat: 単独アプリ (apps/web) を作り、現像の E2E を回す #9) があるので、最初の版は 0.1.0 になる見込みpackages: write)tooling/packages.test.ts: 公開の設定を確かめる。同じ版は出し直せないので、公開する前に止める確かめたこと
pnpm lint && pnpm format:check && pnpm typecheckpnpm packの中身:workspace:*が0.0.0(同じ版) に置き換わるマージのあとの流れと、お願いしたい設定
Refs #4
🤖 Generated with Claude Code