From 35e18e7ac119d71240901ff67a20e492840e4d93 Mon Sep 17 00:00:00 2001 From: Rory Powell Date: Fri, 22 Apr 2022 10:40:17 +0100 Subject: [PATCH] Bash updates --- package.json | 4 ++-- scripts/pro/release.sh | 6 ++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 9909e9045e..b605c419ff 100644 --- a/package.json +++ b/package.json @@ -25,8 +25,8 @@ "build": "lerna run build", "release": "lerna publish patch --yes --force-publish && yarn release:pro", "release:develop": "lerna publish prerelease --yes --force-publish --dist-tag develop && yarn release:pro:develop", - "release:pro": "sh ./scripts/pro/release.sh", - "release:pro:develop": "sh ./scripts/pro/release.sh develop", + "release:pro": "sh scripts/pro/release.sh", + "release:pro:develop": "sh scripts/pro/release.sh develop", "restore": "yarn run clean && yarn run bootstrap && yarn run build", "nuke": "yarn run nuke:packages && yarn run nuke:docker", "nuke:packages": "yarn run restore", diff --git a/scripts/pro/release.sh b/scripts/pro/release.sh index 120b83f863..6023de7f16 100755 --- a/scripts/pro/release.sh +++ b/scripts/pro/release.sh @@ -19,8 +19,7 @@ echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} >> .npmrc # Determine tag to use TAG="" -if [[ $COMMAND == "develop" ]] -then +if [[ $COMMAND == "develop" ]]; then TAG="develop" else TAG="latest" @@ -32,8 +31,7 @@ lerna publish $VERSION --yes --force-publish --dist-tag $TAG cd - -if [[ $COMMAND == "develop" ]] -then +if [[ $COMMAND == "develop" ]]; then # Pin pro version for develop container build echo "Pinning pro version" cd packages/server