fix: alpha/beta/release

This commit is contained in:
2020-11-16 15:57:09 -06:00
parent 33e40f3471
commit 4d3cfa4019
6 changed files with 105 additions and 9 deletions
+8 -4
View File
@@ -2,10 +2,11 @@
set -euo pipefail
for appdir in `find ./packages -name '*-app' -type d | grep -v node_modules`; do
for appdir in `find ./apps -name '*-app' -type d | grep -v node_modules`; do
pushd $appdir
WNS_ORG="dxos"
WNS_ORG="${WNS_ORG:-dxos}"
PKG_CHANNEL="${PKG_CHANNEL:-}"
PKG_NAME=`cat package.json | jq -r '.name' | cut -d'/' -f2- | sed 's/-app$//'`
WNS_NAME="$WNS_ORG/$PKG_NAME"
@@ -13,7 +14,10 @@ for appdir in `find ./packages -name '*-app' -type d | grep -v node_modules`; do
name: $PKG_NAME
build: yarn dist
EOF
cat app.yml
echo "wrn://${WNS_ORG}/application/${PKG_NAME}${PKG_CHANNEL}"
yarn clean
yarn -s wire app build
@@ -22,7 +26,7 @@ EOF
else
yarn -s wire app publish
fi
yarn -s wire app register --name "wrn://${WNS_ORG}/application/${PKG_NAME}"
yarn -s wire app register --name "wrn://${WNS_ORG}/application/${PKG_NAME}${PKG_CHANNEL}"
popd
done