Home > @microsoft/rush-lib > VersionPolicyConfiguration > bump

VersionPolicyConfiguration.bump() method

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

Bumps up versions for the specified version policy or all version policies

Signature:

bump(versionPolicyName?: string, bumpType?: BumpType, identifier?: string, shouldCommit?: boolean): void;

Parameters

Parameter Type Description
versionPolicyName string version policy name
bumpType BumpType bump type to override what policy has defined.
identifier string prerelease identifier to override what policy has defined.
shouldCommit boolean should save to disk

Returns:

void