aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2022-03-22 20:14:58 +0100
committer0neGal <mail@0negal.com>2022-03-22 20:14:58 +0100
commit30358b9c8b30bf10ff62e32e655e37cc15d4dcdb (patch)
tree59cea4a5de1117d185f0ee0f3816679bf8f5c151
parent0879494e67a278e122fbb5d153fe9bdc156cab88 (diff)
downloadViper-30358b9c8b30bf10ff62e32e655e37cc15d4dcdb.tar.gz
Viper-30358b9c8b30bf10ff62e32e655e37cc15d4dcdb.zip
fixed GH_TOKEN not being properly exposed to npm
This lead to you going through the whole build process but it never actually uploaded all the files. Quite annoying!
-rwxr-xr-xbuild/publish.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/build/publish.sh b/build/publish.sh
index c8f7832..042b7c1 100755
--- a/build/publish.sh
+++ b/build/publish.sh
@@ -31,11 +31,11 @@ node build/langs.js || {
exit 1
}
-GH_TOKEN="$GH_TOKEN"
+TOKEN="$GH_TOKEN"
-[ "$GH_TOKEN" = "" ] && {
+[ "$TOKEN" = "" ] && {
echo "GH_TOKEN is not set, please type it below:"
- read -p "> " GH_TOKEN
+ read -p "> " TOKEN
}
-npm run publish
+GH_TOKEN="$TOKEN" npm run publish