Merge pull request #5533 from Budibase/pro-build-fixes

Bash updates
This commit is contained in:
Rory Powell 2022-04-22 10:40:56 +01:00 committed by GitHub
commit d299ed6bf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 6 deletions

View File

@ -25,8 +25,8 @@
"build": "lerna run build", "build": "lerna run build",
"release": "lerna publish patch --yes --force-publish && yarn release:pro", "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:develop": "lerna publish prerelease --yes --force-publish --dist-tag develop && yarn release:pro:develop",
"release:pro": "sh ./scripts/pro/release.sh", "release:pro": "sh scripts/pro/release.sh",
"release:pro:develop": "sh ./scripts/pro/release.sh develop", "release:pro:develop": "sh scripts/pro/release.sh develop",
"restore": "yarn run clean && yarn run bootstrap && yarn run build", "restore": "yarn run clean && yarn run bootstrap && yarn run build",
"nuke": "yarn run nuke:packages && yarn run nuke:docker", "nuke": "yarn run nuke:packages && yarn run nuke:docker",
"nuke:packages": "yarn run restore", "nuke:packages": "yarn run restore",

View File

@ -19,8 +19,7 @@ echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} >> .npmrc
# Determine tag to use # Determine tag to use
TAG="" TAG=""
if [[ $COMMAND == "develop" ]] if [[ $COMMAND == "develop" ]]; then
then
TAG="develop" TAG="develop"
else else
TAG="latest" TAG="latest"
@ -32,8 +31,7 @@ lerna publish $VERSION --yes --force-publish --dist-tag $TAG
cd - cd -
if [[ $COMMAND == "develop" ]] if [[ $COMMAND == "develop" ]]; then
then
# Pin pro version for develop container build # Pin pro version for develop container build
echo "Pinning pro version" echo "Pinning pro version"
cd packages/server cd packages/server