Expublish.Semver (expublish v2.4.2) View Source
Functions for manipulating %Version{} and updating project mix.exs.
Link to this section Summary
Functions
Bump alpha pre-release and patch version.
Bump beta pre-release and patch version.
Return parsed %Version{} from current mix project.
Bump major version.
Bump minor version.
Bump patch version.
Bump release-candidate pre-release and patch version.
Remove current pre-release suffix and declare current version stable.
Increase version in project mix.exs by given level.
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()
Bump alpha pre-release and patch version.
Specs
beta(Version.t(), Expublish.Options.t()) :: Version.t()
Bump beta pre-release and patch version.
Specs
get_version!() :: Version.t()
Return parsed %Version{} from current mix project.
Specs
Bump major version.
Specs
Bump minor version.
Specs
Bump patch version.
Specs
rc(Version.t(), Expublish.Options.t()) :: Version.t()
Bump release-candidate pre-release and patch version.
Specs
Remove current pre-release suffix and declare current version stable.
Specs
update_mix_exs!(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.