The release asset that replaces a running binary of this flavor, or null when this
platform has no published build — the SEA matrix covers three targets, the deno one five.
Compares two x.y.z versions the way a release line orders them: negative when a is older,
0 when they are the same, positive when a is newer.
Fetches the newest release, or the one matching version when pinned.
Parses the release's checksums.txt (sha256sum output) into name → sha256.
A published release, reduced to what an upgrade needs.
-
assets: ReleaseAsset[]
Every asset the release publishes, including
checksums.txt. -
tag: string
The git tag,
v-prefixed as the workflow creates it. -
version: string
The tag without its
v, which is what package.json and--versionspeak.
One downloadable file on a release.
-
name: string
The asset's file name, e.g.
qunitx-deno-linux-x64.tar.gz. -
url: string
Its
browser_download_url.
The release lookup could not be answered — no network, a proxy, an HTTP error, or GitHub's unauthenticated rate limit.
A pinned version that has no published release.
Usage
import * as mod from "lib/commands/upgrade/release.ts";