The mapbox-gl-native repository uses a non-semver-compliant tag naming scheme that prepends a platform identifier to an otherwise semver-compliant version number, since the various libraries developed in that monorepo are versioned independently. This tool relies on the latest-semver package, which is unable to understand these version numbers on its own:
|
return `v${latestSemver(data.map(tag => tag.name))}`; |
Fortunately, I think we can make the tool compatible with mapbox-gl-native by filtering tags by platform and stripping off the platform identifiers before calling latestSemver(). The tool would need a new command line option to specify a platform.
/cc @anandthakker
The mapbox-gl-native repository uses a non-semver-compliant tag naming scheme that prepends a platform identifier to an otherwise semver-compliant version number, since the various libraries developed in that monorepo are versioned independently. This tool relies on the
latest-semverpackage, which is unable to understand these version numbers on its own:github-release-tools/src/get-latest-release.js
Line 13 in 8d88e10
Fortunately, I think we can make the tool compatible with mapbox-gl-native by filtering tags by platform and stripping off the platform identifiers before calling
latestSemver(). The tool would need a new command line option to specify a platform./cc @anandthakker