Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Versioning?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/jacobley-versioning)
---
name: versioning
description: Versioning packages with changesets
---
# Versioning and Changesets
> Config: [`../../../.changeset/config.json`](../../../.changeset/config.json)
Every change to a published package's behavior, API or runtime dependencies needs a changeset. `changeset` is interactive, so as an agent write the file directly as `.changeset/<adjective-noun-verb>.md`:
```md
---
"package-name": patch
---
Description of the change, written for the package's CHANGELOG.
```
Use the npm package name (from `package.json`), not the directory name. One file can list several packages.
A changeset for a package on the [docs site](../docs-site/SKILL.md#documented-packages) usually means its pages need updating too.
## No changeset needed for
- Private packages (`"private": true`), such as `@leyman/main`
- Changes only to tests, dev tooling, configs, CI or devDependencies
## Releasing
Don't run `changeset version` or publish by hand. After a changeset merges to `main`, CI opens a "Version Packages" PR; merging that PR publishes to npm. See the [dagger-ci skill](../dagger-ci/SKILL.md#releasing). The exception is `changeset version` on a branch [patching an older major](../dagger-ci/SKILL.md#patching-an-older-major).
## Go modules
Changesets only versions npm packages. A released Go module (`apps/genever/go`, `apps/populate-files/go`, `tools/aws-emulator-launch/go`, `tools/generated-signature/go`, `tools/idempotency-keys/go`) has a `VERSION` file (`X.Y.Z`) and a `CHANGELOG.md`, both edited by hand: to release, bump `VERSION`, add a `## X.Y.Z` section at the top of the changelog, and merge to `main`; CI tags `<directory>/vX.Y.Z` ([dagger-ci](../dagger-ci/SKILL.md#releasing)). A pull request that changes a released module's code without bumping its `VERSION` fails. A tag can't be changed once the Go proxy has it, so a mistake is fixed with a new version, whose `go.mod` can [`retract`](https://go.dev/ref/mod#go-mod-file-retract) the bad one. The proxy also caches `@latest` for a while, so a new version can take some minutes to be what `go get <module>@latest` picks.
A released module requires its workspace dependencies at their `VERSION` (with a `replace` to the workspace copy, which consumers ignore), and `check-go-release` fails otherwise. So when a module needs a dependency's unreleased change, bump the dependency's `VERSION` too, and require the new version. It doesn't need a changeset; a change to the TypeScript package it ports still does.
`go install <module>/cmd/...@<version>` refuses a module whose `go.mod` has `replace` directives, so the genever command is installed with `go get -tool` (which ignores a dependency's `replace`) instead. A root `go.work` doesn't avoid them: Go still fetches each workspace module's required version, which doesn't exist until it is tagged.
A changeset naming a package that is no longer in the workspace makes `changeset version` fail, so delete or edit changesets when removing a package.