Expublish.Semver (expublish v2.3.4) View Source

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

Link to this section Summary

Functions

Bump major version.

Bump minor version.

Bump patch version.

Return parsed %Version{} from current mix project.

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

Update version in project mix.exs by given level.

Link to this section Functions

Specs

bump_major(Version.t()) :: Version.t()

Bump major version.

Specs

bump_minor(Version.t()) :: Version.t()

Bump minor version.

Specs

bump_patch(Version.t()) :: Version.t()

Bump patch version.

Specs

get_version!() :: Version.t()

Return parsed %Version{} from current mix project.

Link to this function

set_version!(new_version, options \\ %Options{})

View Source

Specs

set_version!(Version.t(), Expublish.Options.t()) :: Version.t()

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

Link to this function

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

View Source

Specs

update_version!(:major | :minor | :patch, Expublish.Options.t()) :: Version.t()

Update 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. Level must be one of: "major", "minor", "patch"