Skip to content

Commit

Permalink
docs(readme): mention version updating in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sheerlox committed Nov 26, 2023
1 parent 0e1aac1 commit 497016e
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
[![Discord](https://img.shields.io/discord/1158414767770308648?logo=discord)](https://discord.gg/cRB8XRFKzH)

> **Warning**
> Publishing to `hex` has not yet been implemented, so this package only bumps the version in `mix.exs` for now.
> Publishing to `hex` has not yet been implemented, so this package only bumps the version in `mix.exs` and `README.md` for 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`. |
| `prepare` | Update the version in `mix.exs` and `README.md`. |
| _`publish`_ | _[to be implemented](https://github.com/talent-ideal/semantic-release-hex/discussions/14) (PRs welcome)_ |

## Installation
Expand Down Expand Up @@ -58,7 +58,9 @@ Add the plugin to the [**semantic-release** configuration file](https://github.c

## Supported version formats

### Regular
### `mix.exs`

#### Regular

```elixir
def project do
Expand All @@ -68,7 +70,7 @@ Add the plugin to the [**semantic-release** configuration file](https://github.c
end
```

### Module attribute
#### Module attribute

```elixir
@version "0.4.2"
Expand All @@ -80,6 +82,18 @@ Add the plugin to the [**semantic-release** configuration file](https://github.c
end
```

### `README.md`

````markdown
```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
```
````

## Community

Join the [Discord server](https://discord.gg/cRB8XRFKzH)! Here you can discuss issues and get help in a more casual forum than GitHub.
Expand Down

0 comments on commit 497016e

Please sign in to comment.