angular-docs-cn/scripts/release/post-check

17 lines
766 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
# use for PATCH releases
# Verify that all packages are published with correct version:
mkdir tmp
cd tmp
npm init -y
npm install typescript@~3.8.3 rxjs@^6.5.3 zone.js@~0.10.3 @bazel/typescript@^1.0.0 rollup@^1.20.0 rollup-plugin-commonjs@^9.0.0 rollup-plugin-node-resolve@^4.2.0 rollup-plugin-sourcemaps@0.4.0 @angular/{animations,bazel,common,compiler,compiler-cli,core,elements,forms,language-service,localize,platform-browser,platform-browser-dynamic,platform-server,platform-webworker,platform-webworker-dynamic,router,service-worker,upgrade} --save
cd ..
rm -rf tmp
echo "CHECK THE DIST-TAGS"
grep '"name": "@angular' $(find packages -name package.json) | grep -o '@angular/[^/"]*' | sort -u | xargs -n 1 -I% npm show \% name dist-tags