GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — sync · al-prk/opencode@cd79676

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages
    • opencode/script
      • publish.ts
    • script/src
      • index.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/opencode/script/publish.ts‎

Copy file name to clipboardExpand all lines: packages/opencode/script/publish.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ await $`cd ./dist/${pkg.name} && bun publish --access public --tag ${Script.chan
4242

4343
if (!Script.preview) {
4444
const major = Script.version.split(".")[0]
45-
const majorTag = `v${major}`
45+
const majorTag = `latest-${major}`
4646
for (const [name] of Object.entries(binaries)) {
4747
await $`cd dist/${name} && npm dist-tag add ${name}@${Script.version} ${majorTag}`
4848
}
Collapse file

‎packages/script/src/index.ts‎

Copy file name to clipboardExpand all lines: packages/script/src/index.ts
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,13 @@ if (process.versions.bun !== "1.3.0") {
44
throw new Error("This script requires [email protected]")
55
}
66

7-
const CHANNEL = process.env["OPENCODE_CHANNEL"] ?? (await $`git branch --show-current`.text().then((x) => x.trim()))
7+
const CHANNEL =
8+
process.env["OPENCODE_CHANNEL"] ??
9+
(await $`git branch --show-current`.text().then((x) => x.trim()))
810
const IS_PREVIEW = CHANNEL !== "latest"
911
const VERSION = await (async () => {
10-
if (IS_PREVIEW) return `0.0.0-${CHANNEL}-${new Date().toISOString().slice(0, 16).replace(/[-:T]/g, "")}`
12+
if (IS_PREVIEW)
13+
return `0.0.0-${CHANNEL}-${new Date().toISOString().slice(0, 16).replace(/[-:T]/g, "")}`
1114
const version = await fetch("https://registry.npmjs.org/opencode-ai/latest")
1215
.then((res) => {
1316
if (!res.ok) throw new Error(res.statusText)

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.