createCommitAndTags()
Create a commit and tags programmatically.
Signature
ts
function createCommitAndTags(options?: {
config?: ResolvedRelizyConfig
noVerify?: boolean
bumpedPackages?: PackageInfo[]
newVersion?: string
dryRun?: boolean
logLevel?: LogLevel
}): Promise<string[]> // Array of created tags1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
Example
ts
import { createCommitAndTags, loadRelizyConfig } from 'relizy'
const config = await loadRelizyConfig()
await createCommitAndTags({
config,
noVerify: false,
bumpedPackages: [],
newVersion: '1.0.0',
dryRun: false,
logLevel: 'info',
})1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12