Skip to content

Commit 913a944

Browse files
devin-ai-integration[bot]maxprilutskiy
authored andcommitted
fix: update Packagist API endpoint for creating new packages (lingodotdev#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 d92e652 commit 913a944

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)