mirror of
https://github.com/sst/opencode.git
synced 2025-07-08 00:25:00 +00:00
ci: upgrade bun
This commit is contained in:
parent
9dc00edfc9
commit
6ed661c140
3 changed files with 18 additions and 17 deletions
2
.github/workflows/deploy.yml
vendored
2
.github/workflows/deploy.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
||||||
|
|
||||||
- uses: oven-sh/setup-bun@v1
|
- uses: oven-sh/setup-bun@v1
|
||||||
with:
|
with:
|
||||||
bun-version: latest
|
bun-version: 1.2.17
|
||||||
|
|
||||||
- run: bun install
|
- run: bun install
|
||||||
|
|
||||||
|
|
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
|
@ -32,7 +32,7 @@ jobs:
|
||||||
|
|
||||||
- uses: oven-sh/setup-bun@v2
|
- uses: oven-sh/setup-bun@v2
|
||||||
with:
|
with:
|
||||||
bun-version: 1.2.16
|
bun-version: 1.2.17
|
||||||
|
|
||||||
- name: Install makepkg
|
- name: Install makepkg
|
||||||
run: |
|
run: |
|
||||||
|
|
|
@ -92,21 +92,22 @@ const cli = yargs(hideBin(process.argv))
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
; (async () => {
|
;(async () => {
|
||||||
if (Installation.VERSION === "dev") return
|
if (Installation.VERSION === "dev") return
|
||||||
if (Installation.isSnapshot()) return
|
if (Installation.isSnapshot()) return
|
||||||
const config = await Config.global()
|
const config = await Config.global()
|
||||||
if (config.autoupdate === false) return
|
if (config.autoupdate === false) return
|
||||||
const latest = await Installation.latest()
|
const latest = await Installation.latest().catch(() => {})
|
||||||
if (Installation.VERSION === latest) return
|
if (!latest) return
|
||||||
const method = await Installation.method()
|
if (Installation.VERSION === latest) return
|
||||||
if (method === "unknown") return
|
const method = await Installation.method()
|
||||||
await Installation.upgrade(method, latest)
|
if (method === "unknown") return
|
||||||
.then(() => {
|
await Installation.upgrade(method, latest)
|
||||||
Bus.publish(Installation.Event.Updated, { version: latest })
|
.then(() => {
|
||||||
})
|
Bus.publish(Installation.Event.Updated, { version: latest })
|
||||||
.catch(() => { })
|
})
|
||||||
})()
|
.catch(() => {})
|
||||||
|
})()
|
||||||
|
|
||||||
await proc.exited
|
await proc.exited
|
||||||
server.stop()
|
server.stop()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue