mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build(): add actual publish script.
This commit is contained in:
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# `npm whoami` errors and dies if you're not logged in,
|
||||
# so we redirect the stderr output to /dev/null since we don't care.
|
||||
NPM_USER=$(npm whoami 2> /dev/null)
|
||||
|
||||
if [ "${NPM_USER}" != "angular2-material" ]; then
|
||||
echo "You must be logged in as 'angular2-material' to publish. Use 'npm login'."
|
||||
exit
|
||||
fi
|
||||
|
||||
set -ex
|
||||
|
||||
for package in ./deploy/*
|
||||
do
|
||||
npm publish ${package}
|
||||
done
|
||||
Reference in New Issue
Block a user