mix narabe.release_check (Narabe v0.1.0)

Copy Markdown View Source

Checks the built files before a release of Narabe.

$ mix narabe.release_check

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

  • one of the four bundle files (narabe.esm.js, narabe.cjs.js, narabe.css and narabe-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.