1
0
Fork 0
mirror of synced 2024-09-29 08:41:16 +13:00

Uncomment release script

This commit is contained in:
Rory Powell 2022-04-22 10:21:47 +01:00
parent eac8c421a7
commit 15e1464a85

View file

@ -1,9 +1,9 @@
#!/bin/bash
# if [[ -z "${CI}" ]]; then
# echo 'Cannot run release.sh unless in CI'
# exit 0
# fi
if [[ -z "${CI}" ]]; then
echo 'Cannot run release.sh unless in CI'
exit 0
fi
# Release pro as same version as budibase
VERSION=$(jq -r .version lerna.json)
@ -15,7 +15,7 @@ echo "Command: $COMMAND"
cd ../budibase-pro
# Install NPM credentials
# echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} >> .npmrc
echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} >> .npmrc
# Determine tag to use
TAG=""
@ -28,7 +28,7 @@ fi
echo "Releasing version $VERSION"
echo "Releasing tag $TAG"
# lerna publish $VERSION --yes --force-publish --dist-tag $TAG
lerna publish $VERSION --yes --force-publish --dist-tag $TAG
cd -