@wtf/release-docs
v13.7.1
Published
The guides of semantic-release for monorepos of more than one ecosystem, released in trains, and the API reference of its packages, which TypeDoc writes: the release of docs commits the reference and publishes it with the guides.
Maintainers
Readme
@wtf/release-docs
The guides for wtf release, which releases a monorepo with one or more ecosystems in trains, and the
API reference of its packages. Each release of the docs train publishes this package. Install it
with npm install --save-dev @wtf/release-docs to read the guides beside the packages, as
node_modules/@wtf/release-docs/guides/getting-started.md.
Guides
Start
- Getting started: learn what a train is, how the libraries and the plugins fit together, and how to write a config and make your first release.
Trains
- Configure trains: set a train's paths and options, see which commits count for it, commit generated folders, replace text in files, and write the config.
- Trains that depend on other trains: learn when a train depends on another, what a run checks, and when a dependency's release makes a train release too.
- Changelogs: write a changelog for each train, and one changelog for every train.
Ecosystems
- How ecosystems work: learn what an ecosystem gives the trains, how npm, Cargo, Go, Maven and OCI images fit in, and how to write an ecosystem of your own.
- Publish npm packages: publish every npm package in a train in dependency order, with npm, pnpm or a publisher of your choice.
- Publish a new package to npm: the placeholder and the trusted publishers a new package needs before its first release by trusted publishing, and how to list and remove them.
- Publish Cargo crates: publish the crates in a train to crates.io, next to npm packages, and finish a release that stopped part way.
- Publish a new crate to crates.io: the placeholder and the trusted publishers a new crate needs before its first release by trusted publishing, with no cargo on your machine, and how to list and remove them.
- Retire a version, and change owners: retire a broken version, as
npm deprecates and crates.io yanks it, restore it, point
latestback, and change who owns a package or a crate. - Publish Go modules: tag the Go modules in a train so that Go
can fetch them, and handle majors,
go.workand the Go proxy. - Publish Maven modules: deploy the Maven modules in a train to the GitLab Maven registry or Maven Central.
- Publish OCI images: copy the image a pipeline tested to the tags of a release, with no rebuild, and link it from the GitLab release.
- Verify a release: check that each version of a release is on its registry, from the command line or from code, for npm, crates.io, the Go proxy, Maven and image registries, and wait for a registry that shows a new version late.
Run releases
- Boundary tags: push a tag of a train by hand, of no release and no pipeline, so its next release skips the commits before it, and see the last tag of each train.
- Run releases in CI: release one train at a time, in a one-shot or a two-step release, on any forge: the order of the trains, smoke tests, predictions and tokens.
- Run releases in GitLab CI: the pipelines of each way to release, with or without to-be-continuous, and the links of the GitLab release to its registries.
- Run releases in GitHub Actions: the workflows of each way to release, and the GitHub release of a train, its notes naming each package it published.
- Release from your machine: release a train from your own clone, with no CI: the checks, the credentials of each forge and registry, and what the tag's pipeline still does.
- Tag pipelines: see whether the tag of a release has a pipeline, start one for a tag that has none on GitLab or GitHub, and check its release.
- Troubleshooting: fix each error, and find out why a release did not happen.
Libraries
- The packages: the map of the packages, the contract between an ecosystem and a driver, and the forges, GitLab and GitHub, that link the packages of a release.
- The platform: give the libraries the platform and the folder of the repo they run on, from a plugin, a CLI of your own or a test.
- Validate a config: check a config in your editor, in code, and in each run against rules of your own.
API reference
The reference for every package is in api/. pnpm run docs writes it with TypeDoc, by the
preset of @wtf/project-typedoc: each package
has a page, its README, and a module for each subpath of its exports, its root index
(api/@wtf/release-npm/index/). It writes api/llms.txt for agents, of llms-template.md, and
lists the files it wrote in api/.generated. The release commits the reference as that list has
it. A branch does not commit it.
Trains
Each package is released on its own train, at the train's version. The same build writes
api/trains.json from release.config.mjs. It lists the packages of each train by name, as
{ "trains": { "release": ["@wtf/release"], … } }.
A package's version is its train's version. This package's devDependencies pin the version of
each package that a release of the docs documents. The guides belong to the docs train, at this
package's version.
The code blocks in the guides compile and run in this package's tests (pnpm test). The tests also
check that api/trains.json matches the trains of the config.
