We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ae90e6 commit 6185f74Copy full SHA for 6185f74
release.sh
@@ -5,6 +5,11 @@ set -o nounset
5
set -o pipefail
6
# set -o xtrace
7
8
+if [[ -z "${PACKAGIST_TOKEN:-}" ]]; then
9
+ echo "PACKAGIST_TOKEN is not set"
10
+ exit 1
11
+fi
12
+
13
if ! grep "${VERSION}" composer.json > /dev/null 2>&1; then
14
echo "First add '${VERSION}' to composer.json please"
15
exit 1
@@ -25,4 +30,3 @@ curl \
25
30
-H 'Content-Type: application/json' \
26
31
-d '{"repository":{"url":"https://github.com/transloadit/php-sdk"}}' \
27
32
"https://packagist.org/api/update-package?username=kvz&apiToken=${PACKAGIST_TOKEN}"
28
-
0 commit comments