kopia lustrzana https://github.com/Tldraw/Tldraw
fix release eliding
rodzic
2f82829b97
commit
c72afe31cb
|
@ -58,7 +58,12 @@ function getTarballManifest(tarballPath: string): Promise<Record<string, Buffer>
|
||||||
onentry: (entry) => {
|
onentry: (entry) => {
|
||||||
entry.on('data', (data) => {
|
entry.on('data', (data) => {
|
||||||
// we could hash these to reduce memory but it's probably fine
|
// we could hash these to reduce memory but it's probably fine
|
||||||
manifest[entry.path] = data
|
const existing = manifest[entry.path]
|
||||||
|
if (existing) {
|
||||||
|
manifest[entry.path] = Buffer.concat([existing, data])
|
||||||
|
} else {
|
||||||
|
manifest[entry.path] = data
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -74,9 +79,10 @@ function getTarballManifest(tarballPath: string): Promise<Record<string, Buffer>
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function didAnyPackageChange() {
|
export async function didAnyPackageChange() {
|
||||||
const details = getAllPackageDetails()
|
const details = await getAllPackageDetails()
|
||||||
for (const pkg of Object.values(details)) {
|
for (const pkg of Object.values(details)) {
|
||||||
if (await hasPackageChanged(pkg)) {
|
if (await hasPackageChanged(pkg)) {
|
||||||
|
console.log('Package changed:', pkg.name)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,9 +17,6 @@ async function main() {
|
||||||
const latestVersionOnNpm = (await exec('npm', ['show', 'tldraw', 'version'])).trim()
|
const latestVersionOnNpm = (await exec('npm', ['show', 'tldraw', 'version'])).trim()
|
||||||
|
|
||||||
const isLatestVersion = latestVersionInBranch.format() === latestVersionOnNpm
|
const isLatestVersion = latestVersionInBranch.format() === latestVersionOnNpm
|
||||||
if (process.env.GITHUB_OUTPUT) {
|
|
||||||
appendFileSync(process.env.GITHUB_OUTPUT, `is_latest_version=${isLatestVersion}\n`)
|
|
||||||
}
|
|
||||||
|
|
||||||
const nextVersion = latestVersionInBranch.inc('patch').format()
|
const nextVersion = latestVersionInBranch.inc('patch').format()
|
||||||
// check we're on the main branch on HEAD
|
// check we're on the main branch on HEAD
|
||||||
|
@ -52,6 +49,10 @@ async function main() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (process.env.GITHUB_OUTPUT) {
|
||||||
|
appendFileSync(process.env.GITHUB_OUTPUT, `is_latest_version=${isLatestVersion}\n`)
|
||||||
|
}
|
||||||
|
|
||||||
nicelog('Releasing version', nextVersion)
|
nicelog('Releasing version', nextVersion)
|
||||||
|
|
||||||
await setAllVersions(nextVersion)
|
await setAllVersions(nextVersion)
|
||||||
|
|
Ładowanie…
Reference in New Issue