Expublish.Semver (expublish v2.3.0) View Source

Functions for manipulating %Version{} and updating project mix.exs.

Link to this section Summary

Functions

Return parsed %Version{} from project mix.exs.

Write given %Version{} to project mix.exs.

Update version in project mix.exs by given level.

Link to this section Functions

Return parsed %Version{} from project mix.exs.

Link to this function

set_version!(new_version, options \\ [])

View Source

Write given %Version{} to project mix.exs.

Link to this function

update_version!(level, options \\ %{})

View Source

Update version in project mix.exs by given level.

Reads the current version from mix.exs, increases it and writes it back to mix.exs. Level must be one of "major", "minor" or "patch".

Link to this function

version_pattern(version)

View Source