# 開発日記-2024-09-05 / Changesetsを使っていく

## Changesetsを使っていく

pnpm + モノレポの環境でChangesetsを使った時の記録。

### インストール

```sh:Terminal
pnpm add -Dw @changesets/cli
```

### 初期化

Changesetsの設定ファイル `.changeset/config.json` が作成される。

```sh:Terminal
pnpm changeset init
```

### 除外設定

Changesetsの設定ファイルの `ignore` にバージョン管理の対象外のパッケージ名を設定すると除外される。

### 参考サイト

ChangesetsとGitHub Actionsを使ってバージョン管理を自動化するための解説記事。

::link-card[https://roboin.io/article/2024/04/19/auto-release-to-npm-with-changesets/]

### Changesets採用プロジェクト

::link-card[https://github.com/chakra-ui/panda]

::link-card[https://github.com/urql-graphql/urql]

::link-card[https://github.com/dotansimha/graphql-code-generator]

::link-card[https://github.com/shadcn-ui/ui]

::link-card[https://github.com/nextui-org/nextui]
