$ cnpm install @auto-it/version-file
For managing versions in a repository that maintains the version primarily in a flat file. Agnostic to the primary language of the repository. Optional input for a release script to call during the publish/canary/next hooks.
This plugin is included with the auto CLI so you do not have to install it. To install if you are using the auto API directly:
npm i --save-dev @auto-it/version-file
# or
yarn add -D @auto-it/version-file
publish,canary and next hooks with the arguments defined in publishScriptReleaseTypeArgs for that release type.{ "publish": ["release"], "canary": ["snapshot"], "next": ["snapshot"] }): Mapping of arguments to pass to the publishScript for each release type (publish, canary, next){
"plugins": [
"version-file"
// other plugins
]
}
{
"plugins": [
"version-file", {"versionFile": "./tools/Version.txt", "publishScript":"./tools/publish.sh", "publishScriptReleaseTypeArgs": {
"publish": ["release"], // (default)
"canary": ["snapshot"],
"next": ["some", "other", "args"],
}}
]
}
Copyright 2013 - present © cnpmjs.org | Home |