Changesetsを使っていく
pnpm + モノレポの環境でChangesetsを使った時の記録。
インストール
Terminal
pnpm add -Dw @changesets/cli
初期化
Changesetsの設定ファイル .changeset/config.json
が作成される。
Terminal
pnpm changeset init
除外設定
Changesetsの設定ファイルの ignore
にバージョン管理の対象外のパッケージ名を設定すると除外される。
参考サイト
ChangesetsとGitHub Actionsを使ってバージョン管理を自動化するための解説記事。
Changesetsでnpmへのリリースを自動化する - ろぼいんブログ
最近、筆者が管理するいくつかのGitHubリポジトリーにChangesetsを導入しました。これによってnpmへのリリース作業を自動化でき、負担が減りました。この記事では、Changesetsを導入する手順を詳しく解説します。
roboin.io
![Changesetsでnpmへのリリースを自動化する - ろぼいんブログ](/_next/image?url=https%3A%2F%2Fpublic-content.hackersheet.com%2Fwebsite-og-images%2F9b010200-4bda-431b-a50e-a1e436c6624b.png&w=3840&q=75)
Changesets採用プロジェクト
GitHub - chakra-ui/panda: 🐼 Universal, Type-Safe, CSS-in-JS Framework for Product Teams ⚡️
🐼 Universal, Type-Safe, CSS-in-JS Framework for Product Teams ⚡️ - chakra-ui/panda
github.com
![GitHub - chakra-ui/panda: 🐼 Universal, Type-Safe, CSS-in-JS Framework for Product Teams ⚡️](/_next/image?url=https%3A%2F%2Fpublic-content.hackersheet.com%2Fwebsite-og-images%2F394abdfb-0950-469e-ae87-31747f68c907.png&w=3840&q=75)
GitHub - urql-graphql/urql: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow. - urql-graphql/urql
github.com
![GitHub - urql-graphql/urql: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.](/_next/image?url=https%3A%2F%2Fpublic-content.hackersheet.com%2Fwebsite-og-images%2F5fe09671-9389-4460-9c5c-80bbdedaa4b7.png&w=1920&q=75)
GitHub - dotansimha/graphql-code-generator: A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins.
A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins. - GitHub - dotansimha/graphql-code-generator: A...
github.com
![GitHub - dotansimha/graphql-code-generator: A tool for generating code based on a GraphQL schema and GraphQL operations (query/mutation/subscription), with flexible support for custom plugins.](/_next/image?url=https%3A%2F%2Fpublic-content.hackersheet.com%2Fwebsite-og-images%2F628deb5d-54d1-4f44-9080-32864ba81103.png&w=2048&q=75)
GitHub - shadcn-ui/ui: Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.
Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source. - shadcn-ui/ui
github.com
![GitHub - shadcn-ui/ui: Beautifully designed components that you can copy and paste into your apps. Accessible. Customizable. Open Source.](/_next/image?url=https%3A%2F%2Fpublic-content.hackersheet.com%2Fwebsite-og-images%2Ff558e895-d60a-405e-a53c-afcefa63ceba.jpeg&w=3840&q=75)
GitHub - nextui-org/nextui: ? Beautiful, fast and modern React UI library.
? Beautiful, fast and modern React UI library. Contribute to nextui-org/nextui development by creating an account on GitHub.
github.com
![GitHub - nextui-org/nextui: ? Beautiful, fast and modern React UI library.](/_next/image?url=https%3A%2F%2Fpublic-content.hackersheet.com%2Fwebsite-og-images%2F1f1d78dc-9dfd-49c0-87a0-ef51990be113.jpeg&w=3840&q=75)