(version: string)
| 827 | * publishing them doesn't move the channel pointer. The wrapper alone |
| 828 | * drives `latest`/`beta`. */ |
| 829 | const variantTagFromVersion = (version: string): string => { |
| 830 | const idx = version.indexOf("-"); |
| 831 | if (idx === -1) { |
| 832 | throw new Error( |
| 833 | `Variant version missing platform-tag suffix (expected '<base>-<tag>'): ${version}`, |
| 834 | ); |
| 835 | } |
| 836 | return version.slice(idx + 1); |
| 837 | }; |
| 838 | |
| 839 | const publish = async (channel: string) => { |
| 840 | const meta = await readMetadata(); |