Skip to content

Commit

Permalink
update changelog.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
23doors committed Aug 4, 2021
1 parent 9f4403f commit 84bd4f2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tools/dev/makefiles/changelog.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ SEMVERBOT_VERSION ?= 0.2.0
SEMVERBOT := $(DEV_BIN_PATH)/sbot_$(SEMVERBOT_VERSION)

SEMVER_PREDICT_VERSION = $(shell $(SEMVERBOT) predict version)
VERSION ?= $(SEMVER_PREDICT_VERSION)

.PHONY: release

Expand All @@ -31,18 +32,17 @@ $(SEMVERBOT):
release: $(GITCHGLOG) $(SEMVERBOT)

release: ## Create new release and update changelog
echo $(SEMVER_PREDICT_VERSION)
$(GITCHGLOG) --next-tag v$(SEMVER_PREDICT_VERSION) v$(SEMVER_PREDICT_VERSION)..
$(GITCHGLOG) --next-tag v$(VERSION) v$(VERSION)..

echo
echo "Releasing v$(SEMVER_PREDICT_VERSION). Continue? [y/N] " && read ans && [ $${ans:-N} = y ]
echo "Releasing v$(VERSION). Continue? [y/N] " && read ans && [ $${ans:-N} = y ]

$(GITCHGLOG) --next-tag v$(SEMVER_PREDICT_VERSION) --output CHANGELOG.md $(STARTING_VERSION)..
$(GITCHGLOG) --next-tag v$(VERSION) --output CHANGELOG.md $(STARTING_VERSION)..
git add CHANGELOG.md
git commit -m "changelog update"
git push

$(SEMVERBOT) release version
$(SEMVERBOT) push version
git tag -a v$(VERSION) -m $(VERSION)
git push origin v$(VERSION)

endif

0 comments on commit 84bd4f2

Please sign in to comment.