Typed schema, migrations, and query builder, built on Kysely and Valibot.
| Package | Database | Folder |
|---|---|---|
kyt-d1 |
Cloudflare D1 | packages/kyt-d1 |
kyt-pg |
Postgres, with postgres.js | packages/kyt-pg |
kyt-d1 was called d1-kyt until 0.11.0.
- In a PR, bump
versionin the package'spackage.jsonand add a## <version>entry to itsCHANGELOG.md. - Merge the PR.
- In GitHub, open Actions, then Publish, then Run workflow. Pick
kyt-d1,kyt-pgorboth. Tickdry_runto try it without publishing.
The workflow runs every test, then publishes to npm with trusted publishing, so it needs no npm token. A version that is already on npm is skipped. For each new version, it creates a tag and a GitHub Release, such as kyt-pg@0.1.2, with that version's CHANGELOG entry as the notes.
Each package needs one setting on npmjs.com, under Settings, then Trusted publishing, then GitHub Actions:
| Field | Value |
|---|---|
| Organization or user | sher |
| Repository | kyt |
| Workflow filename | publish.yml |
| Environment | leave empty |
- pnpm refuses any package version published less than 7 days ago (
minimumReleaseAge: 10080minutes, inpnpm-workspace.yaml). To let one package through early, add it tominimumReleaseAgeExclude. - Dependabot checks the workflow actions every week. It opens a PR only for a release that is at least 7 days old, and it updates the pinned SHA and its version comment.