keep going

This commit is contained in:
Emma Manteater
2026-07-28 16:13:47 -04:00
parent 8a8830d7ad
commit ac04505f04
-14
View File
@@ -3,17 +3,3 @@ import packageJSON from '../package.json' with { type: 'json' }
const latestRelease = await (await fetch('https://api.github.com/repos/MarmadileManteater/FreetubeAndroid/releases?per_page=1'))
console.log(latestRelease)
const code = latestRelease[0].name
const [_, latestMajor, latestMinor, latestBuild] = code.split('.')
const [__, major, minor] = packageJSON.version.split('.')
if (
latestMajor == major &&
latestMinor == minor
) {
console.log(parseInt(latestBuild) + 1)
} else {
console.log(1)
}