Constructor
new RTK(resources, optsopt)
Construct RTK object which will manage a set of resources.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
resources |
Array.<Object>
|
resources which contain version value, the first resource is used as the source of truth of current version | |||||||||||||||||||||
opts |
Object
|
<optional> |
optional settings
|
Methods
release(releaseSchemeNameopt, versionSchemeNameopt, scmSchemeNameopt, cb)
Execute release steps for the specified release scheme.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
releaseSchemeName |
String
|
<optional> |
rtk | release scheme name that defines the steps involved in a release |
versionSchemeName |
String
|
<optional> |
semver | version scheme name that defines the release and post-release version values |
scmSchemeName |
String
|
<optional> |
git | name of SCM used by the repository to be released |
cb |
function
|
standard cb(err, result) callback |