Skip to content

Commit ed19269

Browse files
committed
build(): add actual publish script.
1 parent f0e1273 commit ed19269

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

scripts/release/enact-release.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
3+
# `npm whoami` errors and dies if you're not logged in,
4+
# so we redirect the stderr output to /dev/null since we don't care.
5+
NPM_USER=$(npm whoami 2> /dev/null)
6+
7+
if [ "${NPM_USER}" != "angular2-material" ]; then
8+
echo "You must be logged in as 'angular2-material' to publish. Use 'npm login'."
9+
exit
10+
fi
11+
12+
set -ex
13+
14+
for package in ./deploy/*
15+
do
16+
npm publish ${package}
17+
done

0 commit comments

Comments
 (0)