Merge pull request #5534 from Budibase/pro-build-fixes
Release script updates
This commit is contained in:
commit
602f594087
|
@ -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": "bash scripts/pro/release.sh",
|
||||
"release:pro:develop": "bash 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",
|
||||
|
|
|
@ -29,6 +29,12 @@ echo "Releasing version $VERSION"
|
|||
echo "Releasing tag $TAG"
|
||||
lerna publish $VERSION --yes --force-publish --dist-tag $TAG
|
||||
|
||||
# reset main and types to point to src for dev
|
||||
jq '.main = "src/index.ts" | .types = "src/index.ts"' package.json > package.json.tmp && mv package.json.tmp package.json
|
||||
git add package.json
|
||||
git commit -m 'Prep dev'
|
||||
git push
|
||||
|
||||
cd -
|
||||
|
||||
if [[ $COMMAND == "develop" ]]; then
|
||||
|
|
Loading…
Reference in New Issue