Skip to content

Prepare 0.1.0: publishable packages and a manual publish workflow - #1

Merged
nedtwigg merged 1 commit into
mainfrom
release-0.1.0
Dec 2, 2026
Merged

nedtwigg merged 1 commit into
mainfrom
release-0.1.0

Conversation

@nedtwigg

@nedtwigg nedtwigg commented Dec 2, 2026

Copy link
Copy Markdown
Member

Prepares the first npm release. Merging this publishes nothing. It makes the three packages publishable and adds a workflow that publishes only when started by hand.

What changes

  • @dor-tools/api, @dor-tools/scaffold, @dor-tools/suite take version 0.1.0, drop private, and name this repository and https://dor.tools.
  • Each builds before it is packed (prepack), so a tarball never carries a stale dist.
  • suite lists what it ships: dist, dormouse.yml, the license and its README.
  • .github/workflows/publish.yml: started by hand, from main only. It installs, tests, and runs pnpm -r publish. Its dry_run input defaults to on, which packs and publishes nothing. A real run records provenance.
  • Changelog: the entries so far go under ## [0.1.0] - 2026-12-02. Change the date if the release is cut on another day.
  • READMEs say the packages are on npm at 0.x, where they said "not published yet".

What each tarball holds

From a local pnpm pack of each package:

Package Size Files Depends on
@dor-tools/api 9 KB 7 nothing
@dor-tools/scaffold 13 KB 19 @dor-tools/api 0.1.0
@dor-tools/suite 3.6 MB 280 @dor-tools/api and @dor-tools/scaffold 0.1.0, plus its editor libraries

Each includes LICENSE. The workspace:* dependencies are written as 0.1.0, as pnpm publish does.

To publish, in order

  1. The dor-tools organisation on npm must exist and you must be able to publish to it.
  2. Merge this.
  3. Publish, one of two ways:
    • From your machine: npm login, then from the repository root pnpm install --frozen-lockfile && pnpm -r publish --access public. No provenance this way.
    • From the workflow: add a repository secret NPM_TOKEN (an npm token allowed to publish to @dor-tools), run Publish once with dry_run on and read its output, then again with it off.
  4. Tag the commit v0.1.0.

npm's trusted publishing (no stored token) can only be set up for a package that already exists, so it can replace the secret after this first release, not before. I have not checked whether this pnpm version supports it.

In Dormouse, afterwards

docs/specs/dor-tools-api.md there still says the package "must remain private until the protocol reaches 1.0". That sentence needs replacing when Dormouse's submodule pin moves to the release commit.

Verified

  • pnpm install --frozen-lockfile and pnpm test pass locally on macOS (api 50, scaffold 20, suite 269 passed and 4 skipped).
  • pnpm -r publish --access public --no-git-checks --dry-run exits 0 and names all three packages at 0.1.0.
  • The three tarballs were unpacked and their manifests and file lists read.

Not verified

  • A real publish, by either route.
  • The workflow itself. It has never run; a workflow started by hand cannot run from a branch that is not the default one in a way that proves much. Its first dry run on main is the test.

🤖 Generated with Claude Code

The three packages drop private, take version 0.1.0, and name this
repository. Each builds before it is packed. The suite ships its dist, its
dormouse.yml, the license and its README.

The Publish workflow is started by hand from main, defaults to a dry run,
and records provenance on a real one.

Nothing is published by this commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant