build: add new workflow for packagist - #1
Merged
adobkin merged 1 commit intoMay 22, 2026
Conversation
adobkin
pushed a commit
that referenced
this pull request
May 22, 2026
Co-authored-by: Andrey Melentev <a.melentev@dagroup.one>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add GitHub Actions workflow .github/workflows/packagist.yml that automatically notifies Packagist when a v* tag is pushed
The workflow sends a POST request to the Packagist API with the repository URL and fails if the response HTTP code is >= 400
Requirements
The following must be configured in the repository or organization settings:
Variable: PACKAGIST_USERNAME — Packagist username
Secret: PACKAGIST_TOKEN — Packagist API token
How to submit the package to Packagist
Go to https://packagist.org/ and log in (or create an account)
Click Submit in the top menu
Enter the repository URL: https://github.com/altessa-s/proto-gen-php
Click Check — Packagist will validate the composer.json
Click Submit to register the package
Go to Profile → API Token and copy your token
In GitHub repo, go to Settings → Secrets and variables → Actions:
From now on, every v* tag push will automatically notify Packagist to update the package metadata
Test plan
Configure PACKAGIST_USERNAME and PACKAGIST_TOKEN in the repository settings
Submit the package to Packagist (if not already registered)
Push a v* tag and verify the workflow runs successfully
Confirm that Packagist reflects the updated package metadata