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

17 lines
731 B
Plaintext
Executable File

#!/usr/bin/env bash
# use for BETA and RC 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.11.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,router,service-worker,upgrade}@next --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