interface Release

A published release, reduced to what an upgrade needs.

import type { Release } from './release.ts';

const release: Release = { tag: 'v1.2.3', version: '1.2.3', assets: [] };
release.version; // '1.2.3' — the tag without its leading v

Properties

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 --version speak.

Every asset the release publishes, including checksums.txt.

Usage

import { type Release } from "lib/commands/upgrade/release.ts";