(version: string)
| 778 | * publishing them doesn't move the channel pointer. The wrapper alone |
| 779 | * drives `latest`/`beta`. */ |
| 780 | const variantTagFromVersion = (version: string): string => { |
| 781 | const idx = version.indexOf("-"); |
| 782 | if (idx === -1) { |
| 783 | throw new Error( |
| 784 | `Variant version missing platform-tag suffix (expected '<base>-<tag>'): ${version}`, |
| 785 | ); |
| 786 | } |
| 787 | return version.slice(idx + 1); |
| 788 | }; |
| 789 | |
| 790 | const publish = async (channel: string) => { |
| 791 | const meta = await readMetadata(); |