Skip to content

Commit

Permalink
chore: update README.md to reflect latest version, and add bumping th…
Browse files Browse the repository at this point in the history
…e README version automatically to CI
  • Loading branch information
oliverswitzer committed Dec 2, 2024
1 parent d1aacb0 commit 7698d59
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
# Update version in mix.exs
sed -i 's/version: ".*"/version: "'${RELEASE_VERSION#v}'"/g' mix.exs
sed -i 's/\{:shortcut_api_ex, "*"/\{:shortcut_api_ex, "'${RELEASE_VERSION#v}'"/g' README.md
git add mix.exs
git commit -m "chore: Bump version to ${RELEASE_VERSION}"
git push origin $BRANCH_NAME
Expand Down
10 changes: 10 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

## Publishing a new commit

To publish a new version of this tool, run the github CI [publish.yml](.github/workflows/publish.yml).

It will:

* Automatically create a new version based the conventional commits since your last release.
* Bump the version in the README.md and mix.exs file
* Create a github release for that version
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ by adding `shortcut_api_ex` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:shortcut_api_ex, "~> 0.1.0"}
{:shortcut_api_ex, "~> 1.0.0"}
]
end
```
Expand Down

0 comments on commit 7698d59

Please sign in to comment.