function getVersion (filename: string): string {
  const matches = filename.match(/-(?<version>[0-9.]+)-/)
  return matches?.length === 2 ? matches[1] : ''
}