Expublish.Semver (expublish v2.4.0) View Source
Functions for manipulating %Version{} and updating project mix.exs.
Link to this section Summary
Functions
Add alpha pre-release and bump patch version.
Add beta pre-release and bump patch version.
Bump major version.
Bump minor version.
Bump patch version.
Increase version in project mix.exs by given level.
Return parsed %Version{} from current mix project.
Add release-candidate pre-release and bump patch version.
Write given %Version{} to project mix.exs.
Link to this section Types
Specs
level() :: :major | :minor | :patch | :alpha | :beta | :rc | :stable
Link to this section Functions
Specs
alpha(Version.t(), Expublish.Options.t()) :: Version.t()
Add alpha pre-release and bump patch version.
Specs
beta(Version.t(), Expublish.Options.t()) :: Version.t()
Add beta pre-release and bump patch version.
Specs
Bump major version.
Specs
Bump minor version.
Specs
Bump patch version.
Specs
bump_version!(level(), Expublish.Options.t()) :: Version.t()
Increase version in project mix.exs by given level.
Reads the current version from mix.exs, increases it by given level and writes it back to mix.exs.
Specs
get_version!() :: Version.t()
Return parsed %Version{} from current mix project.
Specs
rc(Version.t(), Expublish.Options.t()) :: Version.t()
Add release-candidate pre-release and bump patch version.
Specs
set_version!(Version.t(), Expublish.Options.t()) :: Version.t()
Write given %Version{} to project mix.exs.