semantic-release plugin to publish a hex package
Warning Publishing to
hexhas not yet been implemented, so this package only bumps the version inmix.exsandREADME.mdfor now.
| Step | Description |
|---|---|
verifyConditions |
Verify the presence of the mix.exs file and that the version is parsable. |
prepare |
Update the version in mix.exs. |
publish |
to be implemented (PRs welcome) |
npm install semantic-release-hex -DFor a more detailed setup guide, see Setting up an existing Elixir project.
Add the plugin to the semantic-release configuration file (see example below).
Warning Make sure you put the
semantic-release-hexplugin above@semantic-release/gitand@semantic-release/github, or the updatedmix.exsfile won't be included in the commit/tag/release.
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"semantic-release-hex",
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "mix.exs"],
"message": "chore(release): v${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
]
} def project do
[
version: "0.4.2",
]
end @version "0.4.2"
def project do
[
version: @version,
]
end```elixir
def deps do
{:hello_world, "0.4.2"},
{:hello_world, "~> 0.4.2"},
{:hello_world, git: "https://github.com/hello_world/hello_world.git", tag: "v0.4.2"},
end
```Join the Discord server! Here you can discuss issues and get help in a more casual forum than GitHub.
This project is looking for help! If you're interested in helping with the project, please take a look at our contributing documentation.
Please have a look at our contributing documentation, it contains all the information you need to know before submitting an issue.