Skip to content

Commit 6185f74

Browse files
committed
Update release.sh
1 parent 4ae90e6 commit 6185f74

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

release.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ set -o nounset
55
set -o pipefail
66
# set -o xtrace
77

8+
if [[ -z "${PACKAGIST_TOKEN:-}" ]]; then
9+
echo "PACKAGIST_TOKEN is not set"
10+
exit 1
11+
fi
12+
813
if ! grep "${VERSION}" composer.json > /dev/null 2>&1; then
914
echo "First add '${VERSION}' to composer.json please"
1015
exit 1
@@ -25,4 +30,3 @@ curl \
2530
-H 'Content-Type: application/json' \
2631
-d '{"repository":{"url":"https://github.com/transloadit/php-sdk"}}' \
2732
"https://packagist.org/api/update-package?username=kvz&apiToken=${PACKAGIST_TOKEN}"
28-

0 commit comments

Comments
 (0)