Skip to content

Commit

Permalink
Update release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kvz committed Nov 28, 2024
1 parent 4ae90e6 commit 6185f74
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ set -o nounset
set -o pipefail
# set -o xtrace

if [[ -z "${PACKAGIST_TOKEN:-}" ]]; then
echo "PACKAGIST_TOKEN is not set"
exit 1
fi

if ! grep "${VERSION}" composer.json > /dev/null 2>&1; then
echo "First add '${VERSION}' to composer.json please"
exit 1
Expand All @@ -25,4 +30,3 @@ curl \
-H 'Content-Type: application/json' \
-d '{"repository":{"url":"https://github.com/transloadit/php-sdk"}}' \
"https://packagist.org/api/update-package?username=kvz&apiToken=${PACKAGIST_TOKEN}"

0 comments on commit 6185f74

Please sign in to comment.