This action automates the synchronization and updating of package information on Packagist.
Minimal setup:
uses: hotaruma/packagist-sync@v1.0.1
with:
api-token: ${{ secrets.packagist_token }}
# Optional Parameters
packagist-username: 'username'
package-name: 'vendor/package'
github-repository-url: 'https://github.com/vendor/package'
packagist-domain: 'https://packagist.org'
composer-json-path: '/path/to/'
Required - The API token for Packagist.
The username on Packagist.
This parameter is optional if the package name is set in the
composer.json
file. If the package name is set, the vendor part will be used as the username.
The name of the package.
This parameter is optional if the package name is already set in the
composer.json
file.
The URL of the GitHub repository.
This parameter is optional if the package already exists.
Optional - The domain of Packagist.
Optional - The custom path to the composer.json
file.
The path should be relative to
$GITHUB_WORKSPACE
.