diff --git a/scripts/github/merge-pr b/scripts/github/merge-pr index 24e944a4d7..029f64bd6a 100755 --- a/scripts/github/merge-pr +++ b/scripts/github/merge-pr @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -u -e -o pipefail diff --git a/scripts/github/push-upstream b/scripts/github/push-upstream index 076ffcc856..a802808856 100755 --- a/scripts/github/push-upstream +++ b/scripts/github/push-upstream @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -u -e -o pipefail diff --git a/scripts/github/rebase-pr b/scripts/github/rebase-pr index 77cda6cd51..b87dbe815f 100755 --- a/scripts/github/rebase-pr +++ b/scripts/github/rebase-pr @@ -1,4 +1,4 @@ -#!/bin/sh +#!/usr/bin/env bash set -u -e -o pipefail diff --git a/scripts/release/post-check b/scripts/release/post-check new file mode 100755 index 0000000000..9d46036aba --- /dev/null +++ b/scripts/release/post-check @@ -0,0 +1,16 @@ + +#!/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@2.6 rxjs@5.5.0 zone.js@0.8.10 @angular/{animations,core,common,forms,router,platform-browser,platform-browser-dynamic,platform-webworker,platform-webworker-dynamic,platform-server,service-worker,compiler,compiler-cli,upgrade,language-service} --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 diff --git a/scripts/release/post-check-next b/scripts/release/post-check-next new file mode 100755 index 0000000000..e10d46b9a5 --- /dev/null +++ b/scripts/release/post-check-next @@ -0,0 +1,16 @@ + +#!/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@2.6 rxjs@5.5.0 zone.js@0.8.10 @angular/{animations,core,common,forms,router,platform-browser,platform-browser-dynamic,platform-webworker,platform-webworker-dynamic,platform-server,compiler,compiler-cli,language-service,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 \ No newline at end of file diff --git a/scripts/release/pre-check b/scripts/release/pre-check new file mode 100755 index 0000000000..33281cb030 --- /dev/null +++ b/scripts/release/pre-check @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +# Verify peer deps constraints and package.json before publishing to npm +# There should be no npm errors + +mkdir tmp +cd tmp +npm init -y +npm install --save ../dist/packages-dist/* zone.js@0.8.10 rxjs@5.5.0 typescript@2.6 +cd .. +rm -rf ./tmp \ No newline at end of file diff --git a/scripts/release/publish b/scripts/release/publish new file mode 100755 index 0000000000..204be53eee --- /dev/null +++ b/scripts/release/publish @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +# Use for PATCH releases +# Publish all packages in `dist/packages-dist` to npm + +(cd dist/packages-dist; for p in `ls .`; do npm publish --access public $p; done) \ No newline at end of file diff --git a/scripts/release/publish-next b/scripts/release/publish-next new file mode 100755 index 0000000000..e1d0f21f17 --- /dev/null +++ b/scripts/release/publish-next @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +# Use for BETA and RC releases +# Publish all packages in `dist/packages-dist` to npm (as next) + +(cd dist/packages-dist; for p in `ls .`; do npm publish --access public --tag next $p; done) \ No newline at end of file