[ReversionOnRelease]
prompt = 1
- [ExecDir]
- [ExtraTests]
-
; GATHER
[Git::GatherDir]
exclude_filename = LICENSE
[CopyFilesFromBuild]
copy = LICENSE
+ [ExecDir]
; PREREQS
[AutoPrereqs]
; RELEASE
[CheckChangesHasContent]
[Git::Check]
+ [RunExtraTests]
[TestRelease]
[ConfirmRelease]
[UploadToCPAN] ; disable with the "no_upload" attribute
use Moose;
use namespace::autoclean;
+=attr authority
+
+Specify the release authority. Defaults to C<cpan:CCM>.
+
+=cut
+
+has authority => (
+ is => 'ro',
+ isa => 'Str',
+ lazy => 1,
+ default => sub {
+ my $self = shift;
+ $self->payload->{'Authority.authority'} // $self->payload->{authority} // 'cpan:CCM';
+ },
+);
+
=attr installer
Specify which installer to use, such as:
['NextRelease'],
['ReversionOnRelease' => {prompt => 1}],
- ['ExecDir'],
- ['ExtraTests'],
-
# GATHER
['Git::GatherDir' => {exclude_filename => [@gather_exclude]}],
['PruneCruft'],
['PruneFiles' => {filename => [@gather_prune]}],
['CopyFilesFromBuild' => {copy => [@copy_from_build]}],
+ ['ExecDir'],
# PREREQS
['AutoPrereqs'],
['Test::ReportPrereqs'],
# METADATA
- ['Authority' => {do_munging => 0}],
+ ['Authority' => {authority => $self->authority, do_munging => 0}],
['MetaJSON'],
['MetaYAML'],
['MetaNoIndex' => {directory => [@no_index]}],
# RELEASE
['CheckChangesHasContent'],
['Git::Check' => {allow_dirty => [@allow_dirty], untracked_files => 'ignore'}],
+ ['RunExtraTests'],
['TestRelease'],
# ['ConfirmRelease'],
$self->no_upload ? ['FakeRelease'] : ['UploadToCPAN'],