Skip to content

Commit bc25195

Browse files
fix: update Packagist API endpoint for creating new packages (#701)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Max Prilutskiy <maks.prilutskiy@gmail.com>
1 parent 18037c2 commit bc25195

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/packagist-publish.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
echo "Package $packageName already exists on Packagist. Updating...\n";
4343
$apiUrl = "https://packagist.org/api/update-package?username=$username&apiToken=$apiToken";
4444
} else {
45-
echo "Package $packageName does not exist on Packagist. Submitting new package...\n";
46-
$apiUrl = "https://packagist.org/api/submit?username=$username&apiToken=$apiToken";
45+
echo "Package $packageName does not exist on Packagist. Creating new package...\n";
46+
$apiUrl = "https://packagist.org/api/create-package?username=$username&apiToken=$apiToken";
4747
}
4848

4949
$repoUrl = "https://github.com/lingodotdev/lingo.dev";

0 commit comments

Comments
 (0)