File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#! /bin/bash
2- # Usage: merge all feature branches into dev first
2+
3+ # USAGE: ./create-release.sh (major|minor|patch)
4+
5+ # HOWOT: merge all feature branches into dev first
36# run this script on dev branch
47# create a PR to merge dev into master (will create a new release)
58
811
912echo " Please note: If you did not use this script before, please run ./install-release-tools.sh!"
1013
11- BUMP=" ${1:- path } "
14+ BUMP=" ${1:- patch } "
1215VERSION=$( cat " ${DIR} /../VERSION" )
13- NEW_VERSION=$( semver bump $BUMP $VERSION )
14- (cd " ${DIR} /../src" && dch -v ${NEW_VERSION} --distribution main " $( git log -1 --pretty=%B) " --force-distribution)
16+ NEW_VERSION=$( semver bump " $BUMP " " $VERSION " )
17+ (cd " ${DIR} /../src" && dch -v ${NEW_VERSION} --distribution main --force-distribution)
18+ echo " $NEW_VERSION " > " ${DIR} /../VERSION"
19+
20+ echo " You are ready to commit the new version: git add -A && git commit -m \" chore: release v${NEW_VERSION} \" "
You can’t perform that action at this time.
0 commit comments