ingred-ui icon indicating copy to clipboard operation
ingred-ui copied to clipboard

changeset の導入

Open takurinton opened this issue 2 years ago • 3 comments

バージョン管理を changeset でやりたい。 理由は以下。

  • ingred-ui は週1回、抽選で当たった誰かがリリースを行うからセマンティックバージョニングでどのバージョンをあげればいいかがわからない
    • 全部のPRを見てバージョニングを判断するのは結構厳しい
    • 変更がないからスルーする週とかがあると、2週分見ないといけない
    • merge するたびに changeset がリリースノートを作ってくれると嬉しい
    • そのリリースノートだけ確認して実際のリリースをすればいいのでいい感じになる
  • バージョンの入力で事故る
    • 今バージョンは Actions の部分でリリースワークフローを選択して手打ちしている
    • 以前、事故ったことがある
    • 手入力は避けて、CLI でバージョニングができると嬉しい

takurinton avatar Sep 14 '22 07:09 takurinton

dependabot の対応とかどうすればいいのか、モノレポじゃないけど特性として正しいのか等はまだ判断できるほど深く追えてないので、調べつつこの issue にメモっていく。

takurinton avatar Sep 14 '22 07:09 takurinton

Preact とかは changeset を導入してる

takurinton avatar Sep 14 '22 07:09 takurinton

https://github.com/changesets/action#with-publishing

takurinton avatar Sep 15 '22 22:09 takurinton

モノレポじゃないけど特性として正しいのか

シングルレポでも有用だよっていう説明

Changesets are designed first and foremost to handle versioning in multi-package repos, where interdependencies flowing through the system are important to understand and capture.

Conceptually though, the benefits of changesets are detachable from this. I think this process overall leads to an improvement in Pull Requests that helps increase confidence in versioning decisions and changelog entries. ( https://github.com/changesets/changesets/blob/main/docs/detailed-explanation.md#benefits-to-single-package-repos )

良さそう

penicillin0 avatar Jun 18 '23 05:06 penicillin0

https://github.com/changesets/changesets#integrating-with-ci

  • changesetsがいないときはCIが落ちるように

    • https://github.com/voyagegroup/ingred-ui/actions/runs/5302710105/jobs/9597834427
  • changesetがあるときは大丈夫

    • https://github.com/voyagegroup/ingred-ui/actions/runs/5302699538/jobs/9597814051

penicillin0 avatar Jun 18 '23 08:06 penicillin0

for dependabot

https://github.com/backstage/backstage/blob/master/.github/workflows/sync_dependabot-changesets.yml

強制でpatch https://github.com/backstage/backstage/blob/1240df156b59df9c43d5cc05f03303a6028f233e/.github/workflows/sync_dependabot-changesets.yml#L42

penicillin0 avatar Jun 18 '23 09:06 penicillin0