1
1
mirror of https://github.com/primer/css.git synced 2024-11-23 20:38:58 +03:00

Fix compare-published for private package (docs)

This commit is contained in:
Shawn Allen 2019-01-07 16:03:15 -08:00
parent eb2780e64e
commit 93f4e15229
2 changed files with 7 additions and 6 deletions

View File

@ -15,8 +15,10 @@ echo "📦 Comparing Primer modules published @${tag}..."
echo "module${s}tag${s}published${s}local"
for package in $packages; do
module=$(jq -r .name "$package/package.json")
v_published=$(npm info "$module@$tag" .version)
v_local=$(jq -Mr .version "$package/package.json")
echo "${module}${s}${tag}${s}${v_published:-x}${s}${v_local}"
if [[ "$(jq -r .private $package/package.json)" != "true" ]]; then
v_published=$(npm info "$module@$tag" .version || echo '0.0.0')
v_local=$(jq -Mr .version "$package/package.json")
echo "${module}${s}${tag}${s}${v_published:-x}${s}${v_local}"
fi
done
) | column -t -s=${s}

View File

@ -3,9 +3,8 @@ set -e
echo "📦 Publishing latest release..."
# note: try-publish should exit cleanly if it detects a duplicate
# published version
npx lerna exec $@ -- $(dirname $0)/try-publish
# note: try-publish should exit cleanly if it hits a published version
npx lerna exec --ignore='@primer/css-docs' $@ -- $(pwd)/script/try-publish
# Build and publish storybook
npx build-storybook -o build