From d0a6e6fa5bb847949c6ab27b023f3fae18a57b38 Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Fri, 24 Mar 2023 17:09:06 +0000 Subject: [PATCH] changed build scripts --- create-release.sh | 8 ++++++-- package.json | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/create-release.sh b/create-release.sh index 343ac0f..2af70ab 100755 --- a/create-release.sh +++ b/create-release.sh @@ -1,7 +1,11 @@ #!/bin/bash -npm version -npm build +method="patch" +if [[ $1 != "" ]]; then + method=$1 +fi +npm version $method +npm run build if [[ $? == 0 ]]; then tar czf cmc_fe.tar.gz dist git add . cmc_fe.tar.gz diff --git a/package.json b/package.json index 8dedf1c..e5759d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cmc_fe", - "version": "1.1.1", + "version": "0.1.6", "private": true, "scripts": { "serve": "vue-cli-service serve",