Snapshot release v0.0.0-202508031629
This commit is contained in:
+2
-6
@@ -18,9 +18,7 @@ const pkgjsons = await Array.fromAsync(
|
|||||||
)
|
)
|
||||||
|
|
||||||
const tree = await $`git add . && git write-tree`.text().then((x) => x.trim())
|
const tree = await $`git add . && git write-tree`.text().then((x) => x.trim())
|
||||||
for await (const file of new Bun.Glob("**/package.json").scan({
|
for (const file of pkgjsons) {
|
||||||
absolute: true,
|
|
||||||
})) {
|
|
||||||
let pkg = await Bun.file(file).text()
|
let pkg = await Bun.file(file).text()
|
||||||
pkg = pkg.replaceAll(/"version": "[^"]+"/g, `"version": "${version}"`)
|
pkg = pkg.replaceAll(/"version": "[^"]+"/g, `"version": "${version}"`)
|
||||||
await Bun.file(file).write(pkg)
|
await Bun.file(file).write(pkg)
|
||||||
@@ -43,9 +41,7 @@ if (snapshot) {
|
|||||||
await $`git push origin v${version} --no-verify`
|
await $`git push origin v${version} --no-verify`
|
||||||
await $`git checkout dev`
|
await $`git checkout dev`
|
||||||
await $`git branch -D snapshot-${version}`
|
await $`git branch -D snapshot-${version}`
|
||||||
for await (const file of new Bun.Glob("**/package.json").scan({
|
for (const file of pkgjsons) {
|
||||||
absolute: true,
|
|
||||||
})) {
|
|
||||||
$`await git checkout ${tree} ${file}`
|
$`await git checkout ${tree} ${file}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user