-
Notifications
You must be signed in to change notification settings - Fork 26
How to release amp toolbox package
Edi Amin edited this page Feb 8, 2023
·
1 revision
To release a new version of the amp-toolbox package, we need to publish a new release in GitHub. To do that, follow these steps:
-
Review the changes from the last release and the merged pull requests in the current milestone.
-
Ensure that there are no open issues in the current milestone.
-
Go to https://github.com/ampproject/amp-toolbox-php/releases and click the "Draft a new release" button.
![Draft a new release](https://user-images.githubusercontent.com/1541774/217534502-669b5e49-1601-4ffb-90df-62a94515d9ef.png)
- From the "Choose a tag" dropdown, enter the current milestone version number to create a new release tag.
![New release tag](https://user-images.githubusercontent.com/1541774/217534987-8af4ccf9-a369-467b-b8da-b85008a5ba83.png)
- Click the "Generate release notes" button to automatically generate the release notes.
![Generate release notes](https://user-images.githubusercontent.com/1541774/217535307-626571ed-a8e8-45cf-85a1-7db1cccb2a67.png)
- It will generate notes like this.
![Generated notes](https://user-images.githubusercontent.com/1541774/217536414-baf715fa-00f1-4929-9edb-a4770157b58e.png)
- Format the "What's Changed" section according to the structure used in the version 0.2.0 release.
![Formatted notes](https://user-images.githubusercontent.com/1541774/217536667-980e17ae-4ca9-4c41-b5f4-47a6758237de.png)
- Click the "Publish release" button.
![Publish release](https://user-images.githubusercontent.com/1541774/217536858-92647985-f70a-4bc6-ad72-03ac50f9a159.png)
- After that, the package will automatically publish in packagist.org. Verify that the latest version is listed at https://packagist.org/packages/ampproject/amp-toolbox.
![packagist.org version list](https://user-images.githubusercontent.com/1541774/217537175-cef27f13-148c-4e42-9e55-4158dada2933.png)