Commit 8fa2f24
ci(release): allow PSGallery publish to recover when the GitHub release already exists (#20)
* ci(release): allow PSGallery publish to recover when the release already exists
Propagates PowerShellModuleTemplate#33. Publishing was gated on 'GitHub release
does not exist', so a release-created-but-publish-failed run could never recover.
Regate: PSGallery check runs unconditionally; Bootstrap runs if a release or a
publish is needed; Publish is gated only on the PSGallery check; Create Release
unchanged. Flagged by CodeRabbit + Copilot during the YTMP rollout.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* ci(release): fail the PSGallery check on a query error instead of assuming not-published
Addresses #20 review (Copilot): now that Publish is gated only on this check,
Find-Module -ErrorAction SilentlyContinue returning $null was treated as
'not on gallery' for BOTH a genuine miss and a transient query failure. Capture
-ErrorVariable: publish only on a clean miss (Find-Module records no error for a
genuine not-found, verified); on a recorded error, throw so the run is retryable.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e651a28 commit 8fa2f24
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | | - | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
60 | 68 | | |
61 | 69 | | |
62 | 70 | | |
63 | 71 | | |
64 | 72 | | |
65 | 73 | | |
66 | | - | |
| 74 | + | |
67 | 75 | | |
68 | 76 | | |
69 | 77 | | |
| |||
124 | 132 | | |
125 | 133 | | |
126 | 134 | | |
127 | | - | |
| 135 | + | |
128 | 136 | | |
129 | 137 | | |
130 | 138 | | |
| |||
0 commit comments