Hi again, This is how I ended up solving it. The s...
# multiplatform
o
Hi again, This is how I ended up solving it. The script publish the artefacts to our private artifactory (azure in this case). It uses lernna to set version and publish.
Copy code
cp ./lerna.json $CORE_BUILD_JS_DIR
cd $CORE_BUILD_JS_DIR

# Creates a comma separated list of all folders in packages/ 
TARGET_NPM_PACKAGES="$(cd packages && ls -m -d core-* | tr -d [:space:])"

yarn add lerna --dev --ignore-workspace-root-check
SET_VERSION_CMD="./node_modules/.bin/lerna version $VERSION --no-push --force-publish=$TARGET_NPM_PACKAGES --no-changelog --no-git-tag-version --yes"
$SET_VERSION_CMD
./node_modules/.bin/lerna publish from-package --no-git-reset --yes

TAG_VERSION="v$VERSION"
git tag $TAG_VERSION
git push origin $TAG_VERSION