The first release is version 0.1.0. Start from a clean checkout with the release check toolchain. Keep the project version, dependency requirement in the installation guides, changelog and tag aligned. Review the resolved Lynx version and compare the Lean toolchain files before running checks.
Validate the candidate
mix deps.get --check-locked
cmp lean-toolchain deps/lynx/lean-toolchain
export ELAN_TOOLCHAIN="$(cat lean-toolchain)"
lean --version
lake --version
mix check
mix test
mix docs
mix hex.publish --dry-run --yes
scripts/check_hex_package.sh
Review the generated documentation under doc/. Check the installation
instructions, links, source references and math in the examples. Source links
use the release tag and resolve once it is pushed.
Use mix hex.build --unpack to inspect the package file list and metadata,
including the Lean proof sources and runtime dependencies. The smoke script
runs against the unpacked package in a temporary consumer project. It checks
the Getting Started example with cold and warm proof caches, verification of
a compiled module, and rejection of a bad proof and an unsupported target.
The consumer resolves its own dependencies.
Publish the validated commit
Confirm package ownership and authenticate with Hex before the first publish.
Create and push the version tag for the validated commit, then run
mix hex.publish from that commit. Review the package and documentation shown
by Hex before confirming publication.
Once Hex and HexDocs show the release, run
scripts/check_hex_package.sh --published from the release checkout. Check
the versioned docs, package metadata and source links. Publish matching GitHub
release notes and record the release links and check results in the tracking
issue.
Report defects through the repository issue tracker. For a package defect, prepare and validate a corrective release. For a documentation-only defect, the maintainer can update documentation for the existing Hex release.
See the Hex publishing guide for account setup, publishing and recovery options.