Skip to content
Back to skills

Releases And Changesets

ASecurity

Use when creating `.changeset/*.md`, adding a publishable `@pie-qti/*` package, choosing a release bump, running `bun run version`, `bun run release`, `bun run release:with-version`, or preparing fixed-version package publishing.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 19, 2026
toolsrustgonodegit

Works with

  • terminal
  • cli

Security analysis

A100/100

Scanned November 19, 2026

npx -y skills add pie-framework/pie-qti --skill releases-and-changesets --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Releases And Changesets?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Releases And Changesets
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/pie-framework-releases-and-changesets/badge)](https://www.skillsdirectory.com/skills/pie-framework-releases-and-changesets)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: releases-and-changesets
description: Use when creating `.changeset/*.md`, adding a publishable `@pie-qti/*` package, choosing a release bump, running `bun run version`, `bun run release`, `bun run release:with-version`, or preparing fixed-version package publishing.
---

# Releases And Changesets

Author changesets and prepare releases under this repo's fixed-version publishing policy for publishable `@pie-qti/*` packages.

## Source Of Truth

- `.changeset/config.json` defines the fixed package group and ignored private apps.
- `scripts/publish-policy.json` defines publishable workspace roots and package metadata requirements.
- `scripts/create-temporary-release-changeset.mjs` writes a temporary patch changeset for every publishable package during `release:with-version`.
- `scripts/check-fixed-versioning.mjs` verifies that the fixed group matches the publishable package set and that publishable package versions stay aligned.
- `package.json` scripts define the canonical release commands.

## Policy

All publishable `@pie-qti/*` packages release as one fixed-version set. A release updates every publishable package in the set, even when only some packages changed. Treat that as an invariant, not drift to "clean up."

Use `patch` for ordinary pre-1.0 changes unless the maintainer explicitly asks for a different bump. If a pending changeset declares `minor` or `major`, call it out before running `bun run version` or any release command because it affects the whole fixed group.

## When To Add A Changeset

Add a changeset when a change ships in a publishable package or changes a host-facing package contract:

- source changes under publishable `packages/*` or `tools/*`,
- public exports, package metadata, generated `dist`, or runtime side effects,
- transformation, player, component, scoring, packaging, or CLI behavior that consumers receive from npm,
- a new publishable package.

Skip a changeset for docs-only changes, private app changes, tests that do not change shipped behavior, and internal cleanup with no package output change.

## Authoring A Changeset

1. Check the changed publishable packages.
2. Create or edit a `.changeset/*.md` file.
3. List only packages whose shipped behavior or public surface changed; the release script supplies the all-package lockstep bump.
4. Keep the body consumer-facing: what changed, why it matters, and any migration note.
5. Use `patch` unless the maintainer explicitly requests another bump.

## Adding A Publishable Package

When adding a package that will publish to npm:

1. Add it under a workspace root covered by `scripts/publish-policy.json`.
2. Add the package name to the fixed group in `.changeset/config.json`.
3. Ensure package metadata satisfies `bun run check:package-metadata`.
4. Ensure exports and publish surface satisfy `bun run check:publish-surface`, `bun run check:pack-exports`, and `bun run check:pack-smoke`.
5. Add a changeset for the new package.

## Commands

| Command | Use |
| --- | --- |
| `bun run changeset` | Interactive changeset authoring. |
| `bun run version` | Apply pending changesets to package versions and changelogs. |
| `bun run verify:publish` | Full build plus publish preflight. |
| `bun run verify:publish:quick` | Publish preflight without the initial build. |
| `bun run release:with-version` | Canonical local release command: temporary all-package changeset, version, restore workspace ranges, auth check, publish verification, tests, release, restore ranges. |
| `bun run release` | Lower-level publish wrapper used by `release:with-version`; do not run directly unless the maintainer asks. |

## During the 1.0.0-beta pre mode

While `.changeset/pre.json` is active, every package in the fixed group publishes as `1.0.0-beta.N` under the `beta` dist-tag, and `latest` stays where it was. The release workflow cannot move it: the OIDC trusted publisher has no dist-tag rights ("Allow npm dist-tag" is a website-only toggle per package, not an `npm trust` flag).

When the maintainer promotes a release, re-point `latest` locally for all packages in the fixed group, after `npm login`. npm asks for a browser approval per package, so run it in an interactive terminal:

```sh
for p in $(jq -r '.fixed[0][]' .changeset/config.json); do
  npm dist-tag add "$p@<version>" latest
done
```

Verify afterwards with `npm view @pie-qti/<pkg> dist-tags`. A brand-new package must be published once before `npm trust github` accepts its trusted-publisher configuration; its first release cannot go through OIDC.

## Preflight

Before a release, confirm:

- working tree and branch are intentional,
- pending changesets have the expected bump levels,
- npm auth works. CI publishes through npm OIDC trusted publishing with no stored token (`docs/development/trusted-publishing.md`). Locally a normal `npm login` is enough: `check:npm-auth` runs `npm whoami` and falls back to interactive `npm login` (see `AUTO_LOGIN_ENABLED` in `scripts/check-npm-auth.mjs`); it uses `NPM_TOKEN`/`NODE_AUTH_TOKEN` from `.env` only when one is set,
- `bun run verify:publish` passes,
- `bun run test` passes when preparing an actual publish.

Run release commands with full sandbox permissions when browser-bound tests or networked npm checks are expected.

## Do Not

- Do not remove a package from `.changeset/config.json` to unblock a release.
- Do not publish with `npm publish` directly.
- Do not leave workspace ranges rewritten after a failed version or release step; run `bun run restore:workspace-ranges` if needed.
- Do not copy the `pie-players` patch-only rule blindly if the maintainer explicitly chooses a different `pie-qti` bump policy.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.