Releasing PhoenixCap

Copy Markdown View Source

Set @version in mix.exs, update the installation example in the README, and record the changes in the changelog. If updating the upstream widget or solver, run mix phoenix_cap.update and review assets/VERSIONS and the bundled assets together.

Verify the release locally

Run these commands from the package checkout.

mix deps.get --locked
mix hex.audit
mix format --check-formatted
mix compile --warnings-as-errors
mix test --cover --warnings-as-errors
mix credo --strict
mix dialyzer
mix docs --warnings-as-errors
mix hex.build
mix hex.publish --dry-run --yes

The test command prints Elixir line coverage per module and enforces a 90% minimum overall. Open doc/index.html to review the generated guides and API reference. The Hex build lists the files included in the tarball. Check that the widget, both WASM binaries, and both license files are present.

Publish on Hex

From the release commit, run mix hex.publish and confirm the package and documentation upload. Tag the same commit as v<version> and push the tag so the HexDocs source links resolve to the released code. See the Hex publishing guide.