(version: string)
| 756 | * publishing them doesn't move the channel pointer. The wrapper alone |
| 757 | * drives `latest`/`beta`. */ |
| 758 | const variantTagFromVersion = (version: string): string => { |
| 759 | const idx = version.indexOf("-"); |
| 760 | if (idx === -1) { |
| 761 | throw new Error( |
| 762 | `Variant version missing platform-tag suffix (expected '<base>-<tag>'): ${version}`, |
| 763 | ); |
| 764 | } |
| 765 | return version.slice(idx + 1); |
| 766 | }; |
| 767 | |
| 768 | const publish = async (channel: string) => { |
| 769 | const meta = await readMetadata(); |