- You must have a PAUSE account and must be a maintainer of the Net::CampaignMonitor module.
-
Increment version constants in the following files, ensuring that you use Semantic Versioning:
lib/Net/CampaignMonitor.pm
(both$VERSION
and thepod
documentation section)META.yml
-
Add an entry to
HISTORY.md
which clearly explains the new release. -
Write
Makefile
and run tests:perl Makefile.PL && make test
-
Commit your changes:
git commit -am "Version X.Y.Z"
-
Tag the new version:
git tag -a vX.Y.Z -m "Version X.Y.Z"
-
Push your changes to GitHub, including the tag you just created:
git push origin master --tags
-
Ensure that all tests pass.
perl package.pl vX.Y.Z
This packages a distribution to a file named something like ../Net-CampaignMonitor-vX.Y.Z.tar.gz
. You're now ready to release the package.
Log in to PAUSE and choose the Upload a file to CPAN option from the menu on the left hand side.
Then click Choose File, choose the Net-CampaignMonitor-vX.Y.Z.tar.gz
file you packaged in the previous step, and click Upload this file from my disk to upload the distribution.
You should receive an email confirming the upload, as well as an email confirming that the package has been indexed by the PAUSE indexer. All done!