@@ -33,19 +33,27 @@ d.Node packageAdminPageNode({
3333 ],
3434 ),
3535 TocNode (
36- 'Automated publishing ' ,
37- href: '#automated- publishing' ,
36+ 'Publishing ' ,
37+ href: '#publishing' ,
3838 children: [
39- TocNode ('GitHub Actions' , href: '#github-actions' ),
39+ if (requestContext
40+ .experimentalFlags
41+ .isManualPublishingConfigAvailable)
42+ TocNode ('Manual publishing' , href: '#manual-publishing' ),
4043 TocNode (
41- 'Google Cloud Service account' ,
42- href: '#google-cloud-service-account' ,
44+ 'Automated publishing' ,
45+ href: '#automated-publishing' ,
46+ children: [
47+ TocNode ('GitHub Actions' , href: '#github-actions' ),
48+ TocNode (
49+ 'Google Cloud Service account' ,
50+ href: '#google-cloud-service-account' ,
51+ ),
52+ ],
4353 ),
54+ TocNode ('Version retraction' , href: '#version-retraction' ),
4455 ],
4556 ),
46- if (requestContext.experimentalFlags.isManualPublishingConfigAvailable)
47- TocNode ('Manual publishing' , href: '#manual-publishing' ),
48- TocNode ('Version retraction' , href: '#version-retraction' ),
4957 ]),
5058 d.a (name: 'ownership' ),
5159 d.h2 (text: 'Package ownership' ),
@@ -229,9 +237,11 @@ d.Node packageAdminPageNode({
229237 ),
230238 ),
231239 ],
232- _automatedPublishing (package),
240+ d.a (name: 'publishing' ),
241+ d.h2 (text: 'Publishing' ),
233242 if (requestContext.experimentalFlags.isManualPublishingConfigAvailable)
234243 _manualPublishing (package),
244+ _automatedPublishing (package),
235245 d.a (name: 'version-retraction' ),
236246 d.h2 (text: 'Version retraction' ),
237247 d.div (
@@ -309,7 +319,7 @@ d.Node _automatedPublishing(Package package) {
309319 final isGitHubEnabled = github? .isEnabled ?? false ;
310320 return d.fragment ([
311321 d.a (name: 'automated-publishing' ),
312- d.h2 (text: 'Automated publishing' ),
322+ d.h3 (text: 'Automated publishing' ),
313323 d.markdown (
314324 'You can automate publishing from the supported automated deployment environments. '
315325 'Instead of creating long-lived secrets, you may use temporary OpenID-Connect tokens '
@@ -462,7 +472,7 @@ d.Node _manualPublishing(Package package) {
462472 final manual = package.automatedPublishing? .manualConfig;
463473 return d.fragment ([
464474 d.a (name: 'manual-publishing' ),
465- d.h2 (text: 'Manual publishing' ),
475+ d.h3 (text: 'Manual publishing' ),
466476 d.markdown (
467477 'The manual publishing of new versions using the `pub` tool is enabled by default in all packages. '
468478 'Disabling it may protect the package from accidental publishing events when the package is otherwise using '
@@ -471,9 +481,9 @@ d.Node _manualPublishing(Package package) {
471481 d.div (
472482 classes: ['-pub-form-checkbox-row' ],
473483 child: material.checkbox (
474- id: '-admin-is- manual-publishing-disabled ' ,
475- label: 'Disable manual publishing' ,
476- checked: manual? .isDisabled ?? false ,
484+ id: '-pkg- admin-manual-publishing-enabled ' ,
485+ label: 'Enable manual publishing' ,
486+ checked: manual? .isEnabled ?? true ,
477487 ),
478488 ),
479489 ]);
0 commit comments