Skip to content

Commit

Permalink
chore: Do not allow release without version
Browse files Browse the repository at this point in the history
The change checks if the `version` variable is provided for a release.
  • Loading branch information
laenan8466 authored Nov 14, 2023
1 parent cbf569c commit a8174fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ changelog:
@git-changelog -Tio CHANGELOG.md -Bauto -c angular

release:
ifndef version
$(error version is not set)
endif
@git add CHANGELOG.md
@git commit -m "docs: Update changelog for version $(version)"
@git tag $(version)
Expand Down

0 comments on commit a8174fc

Please sign in to comment.