Use packages cache, run lern via npx

This commit is contained in:
Dominik Prokop
2019-07-11 13:23:17 +02:00
parent 98908f7b98
commit 2ed7ceb59d
2 changed files with 5 additions and 7 deletions
+2 -4
View File
@@ -628,10 +628,8 @@ jobs:
- image: circleci/node:10
steps:
- checkout
- run:
name: yarn add lerna
command: 'yarn add -W lerna'
no_output_timeout: 15m
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
- run:
name: prepare bumped versions
command: './scripts/circle-check-packages.sh'
+3 -3
View File
@@ -13,14 +13,14 @@ echo "Commit: ${GIT_BRANCH}"
echo "Current lerna.json version: ${PACKAGE_VERSION}"
# count packages that changed
count=`./node_modules/.bin/lerna changed --loglevel silent | awk '{c++} END {print c}'`
count=`npx lerna changed --loglevel silent | awk '{c++} END {print c}'`
if [ -z $count ]; then
echo "No changes in packages, not publishing"
echo "No changes in packages, skipping packages publishing"
else
echo "Changes detected in ${count} packages"
echo "Releasing packages under ${PACKAGE_VERSION}-${GIT_BRANCH}"
lerna version ${PACKAGE_VERSION}-${GIT_BRANCH} --no-git-tag-version --no-push --force-publish -y
npx lerna version ${PACKAGE_VERSION}-${GIT_BRANCH} --no-git-tag-version --no-push --force-publish -y
git status -s
fi