https://github.com/angular/angular
Raw File
Tip revision: 180b705227284c80b06c7e0ed8f8dc1ee57bf524 authored by Igor Minar on 02 March 2017, 06:44:50 UTC
release: cut the 4.0.0-rc.2 release
Tip revision: 180b705
publish-packages.sh
#!/usr/bin/env bash

set -ex

cd `dirname $0`

VERSION=$1

if [[ "${VERSION}" == "" ]]
then
  echo "Version number required"
  exit 1
fi

./build.sh

for PACKAGE in \
  core \
  compiler \
  compiler-cli \
  common \
  http \
  platform-browser \
  platform-server \
  upgrade
do
  DESTDIR=./dist/packages-dist/${PACKAGE}
  echo "====== PUBLISHING: ${DESTDIR} ====="
  npm publish ${DESTDIR} --access public
done
back to top