Skip to content

UpdateVersionOptions

Options for updateVersion.

Import:

import type { UpdateVersionOptions } from 'obsidian-dev-utils/script-utils/version';

Signature:

export interface UpdateVersionOptions

Properties

PropertyTypeDescription
shouldArchiveDemoVault?booleanWhether to archive the plugin's demo vault (demo-vault/ in the repo root) as a release artifact. Only applies to Obsidian plugins; ignored when the repo has no demo-vault/ folder.
shouldBuild?booleanWhether to run the build step. The build is a publishing prerequisite, not a verification check, so it is governed by this flag independently of shouldRunChecks — it runs even when the checks are skipped, so a fast release still ships fresh artifacts. Set to false only when the build output is known to already match the current code; otherwise the release would publish stale artifacts.
shouldEditChangelog?booleanWhether to open the generated changelog in the editor for an interactive review.
shouldRelease?booleanWhether to publish the release. When false, all local steps are executed (version bump, changelog, commit, tag), but the changes are not pushed and no GitHub release is published.
shouldRunChecks?booleanWhether to run the preflight verification checks (clean-repo check, format, spellcheck, lint, over-exposure analysis, and tests). The build step is not one of these checks — it is governed separately by shouldBuild.
shouldVerifyCommit?booleanWhether to run the pre-commit hook when creating the release commit. When false, --no-verify is passed to the release commit to skip the hook.

Methods

MethodReturnsDescription
prepareGitHubRelease(this, newVersion)Promise<void>A callback function to prepare the GitHub release.

Links to this page: