Commit aa73f47
fix(ci): address second round of PR review feedback
- download-github-releases.mjs: fail fast with a clear message when
`GH_TOKEN` is missing in non-`--check-only` mode (where `gh
release download` would otherwise produce a generic auth error
mid-loop).
- download-github-releases.mjs: clear `publish_artifacts_npm/`,
`publish_artifacts_crates/`, and `publish_artifacts_meta/` at the
start of non-check mode (in addition to the per-iteration
`publish_artifacts_stage/` cleanup) so stale `.tgz`/`.crate`
files from a partially-failed previous run cannot be reused.
- download-github-releases.mjs: refuse to mark a tag as processed
when its release contained no `.tgz` or `.crate` assets. Without
this the Azure pipeline would push the `deployed/<tag>` marker
for a release that never actually published anything, so the
problem would never be retried.
- download-github-releases.mjs + create-github-releases.mjs:
narrow the `catch (error)` payload with
`error instanceof Error ? error.message : String(error)` so we do
not log `undefined` (or crash trying to read `.message`) if a
non-`Error` value is thrown.
- create-github-releases.mjs: fail fast with a clear message when
`GH_TOKEN` is missing in non-`--check-only` mode (the script
needs it to call `gh release create`).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent bfbf8f6 commit aa73f47
2 files changed
Lines changed: 42 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
179 | 188 | | |
180 | 189 | | |
181 | 190 | | |
| |||
268 | 277 | | |
269 | 278 | | |
270 | 279 | | |
271 | | - | |
| 280 | + | |
| 281 | + | |
272 | 282 | | |
273 | 283 | | |
274 | 284 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
65 | 74 | | |
66 | 75 | | |
67 | 76 | | |
| |||
110 | 119 | | |
111 | 120 | | |
112 | 121 | | |
113 | | - | |
114 | | - | |
115 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
116 | 129 | | |
117 | 130 | | |
118 | 131 | | |
| |||
131 | 144 | | |
132 | 145 | | |
133 | 146 | | |
| 147 | + | |
134 | 148 | | |
135 | 149 | | |
136 | 150 | | |
137 | 151 | | |
| 152 | + | |
138 | 153 | | |
139 | 154 | | |
| 155 | + | |
140 | 156 | | |
141 | 157 | | |
142 | 158 | | |
143 | 159 | | |
144 | 160 | | |
145 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
146 | 172 | | |
147 | 173 | | |
148 | 174 | | |
149 | | - | |
| 175 | + | |
| 176 | + | |
150 | 177 | | |
151 | 178 | | |
152 | 179 | | |
| |||
0 commit comments