(version: string)
| 747 | * publishing them doesn't move the channel pointer. The wrapper alone |
| 748 | * drives `latest`/`beta`. */ |
| 749 | const variantTagFromVersion = (version: string): string => { |
| 750 | const idx = version.indexOf("-"); |
| 751 | if (idx === -1) { |
| 752 | throw new Error( |
| 753 | `Variant version missing platform-tag suffix (expected '<base>-<tag>'): ${version}`, |
| 754 | ); |
| 755 | } |
| 756 | return version.slice(idx + 1); |
| 757 | }; |
| 758 | |
| 759 | const publish = async (channel: string) => { |
| 760 | const meta = await readMetadata(); |