# `mix kotoba.release_check`
[🔗](https://github.com/hattoriai/kotoba/blob/v0.5.0/lib/mix/tasks/kotoba.release_check.ex#L1)

Checks the built files before a release of Kotoba.

    $ mix kotoba.release_check

This task is for work on Kotoba itself; the `release` alias runs it
after `mix kotoba.build` and before `mix hex.publish`. In any project
but Kotoba, it stops with an error. It fails when:

  * one of the six bundle files (`kotoba.esm.js`, `kotoba.cjs.js`,
    `kotoba-collab.esm.js`, `kotoba-collab.cjs.js`, `kotoba.css` and
    `kotoba-sumi.css`) is missing from `priv/static`,
    or is empty (the empty files that CI makes are not a build);
  * `priv/static` holds any other file or directory;
  * the `version` of `package.json` is not the version of `mix.exs`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
