From eb5feefd2a83b5b058528d6723cd1fe81170765e Mon Sep 17 00:00:00 2001 From: James Panther <4462786+jpanther@users.noreply.github.com> Date: Sun, 22 Aug 2021 17:29:18 +1000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20Fix=20issue=20with=20version=20n?= =?UTF-8?q?umbers=20in=20release.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- release.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/release.sh b/release.sh index 4b5538ed..a88d1497 100755 --- a/release.sh +++ b/release.sh @@ -15,14 +15,14 @@ if [ $branch = "dev" ]; then if output=$(git status --porcelain) && [ -z "$output" ]; then # get the version number - echo "Enter the release version (eg. v1.0.0):" + echo "Enter the release version (eg. 1.2.0):" read version - echo "Started releasing Congo $version..." + echo "Started releasing Congo v$version..." # update package version jq --arg version "$version" '.version=$version' package.json > package.tmp && mv package.tmp package.json - sed -i -e "1s/^\(\/\*! Congo \)v[0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}/\1$version/" assets/css/main.css + sed -i "" -e "1s/^\(\/\*! Congo \)v[0-9]\{1,\}\.[0-9]\{1,\}\.[0-9]\{1,\}/\1v$version/" assets/css/main.css # update changelog chan release $version || exit @@ -32,7 +32,7 @@ if [ $branch = "dev" ]; then npm run build # commit version updates - git commit -a -m "🔨 Preparing release $version" + git commit -a -m "🔨 Preparing release v$version" git push # switch to stable branch @@ -42,7 +42,7 @@ if [ $branch = "dev" ]; then git pull # merge in changes from dev branch - git merge --no-ff dev -m "🔖 Release $version" + git merge --no-ff dev -m "🔖 Release v$version" # create tag git tag $version @@ -54,7 +54,7 @@ if [ $branch = "dev" ]; then # publish GitHub release timeout 2 chan gh-release $version - echo "Congo $version successfully released! 🎉" + echo "Congo v$version successfully released! 🎉" echo "Returning to dev branch..." git checkout dev