11.3.0 • Published 8 months ago

@auto-it/version-file v11.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Version File Plugin

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.

Installation

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

Options

  • versionFile (optional, default="VERSION"): Path to where the version is stored in the repository. It should be a file containing just the semver.
  • publishScript: (optional, default=None): Path to script that runs the publish actions in your repository. If not supplied nothing will be called. If supplied will be called during the publish,canary and next hooks with the arguments defined in publishScriptReleaseTypeArgs for that release type.
  • publishScriptReleaseTypeArgs: (optional, default={ "publish": ["release"], "canary": ["snapshot"], "next": ["snapshot"] }): Mapping of arguments to pass to the publishScript for each release type (publish, canary, next)

Usage

With default options

{
  "plugins": [
    "version-file"
    // other plugins
  ]
}

With optional arguments

{
  "plugins": [
    "version-file", {"versionFile": "./tools/Version.txt", "publishScript":"./tools/publish.sh", "publishScriptReleaseTypeArgs": {
      "publish": ["release"], // (default)
      "canary": ["snapshot"],
      "next": ["some", "other", "args"],
    }}
  ]
}
11.3.0

8 months ago

11.2.1

10 months ago

11.2.0

11 months ago

11.1.5

1 year ago

11.1.6

1 year ago

11.1.4

1 year ago

11.1.3

1 year ago

11.1.2

1 year ago

11.0.6

1 year ago

11.0.7

1 year ago

11.0.5

1 year ago

11.1.1

1 year ago

11.1.0

1 year ago

11.0.4

2 years ago

11.0.2

2 years ago

11.0.3

2 years ago

11.0.0

2 years ago

11.0.1

2 years ago

10.45.2

2 years ago

10.46.0

2 years ago

10.45.1

2 years ago

10.45.0

2 years ago

10.40.0

2 years ago

10.42.0

2 years ago

10.41.0

2 years ago

10.39.0

2 years ago

10.38.1

2 years ago

10.38.0

2 years ago

10.44.0

2 years ago

10.42.2

2 years ago

10.43.0

2 years ago

10.42.1

2 years ago

10.38.3

2 years ago

10.39.1

2 years ago

10.38.2

2 years ago

10.38.5

2 years ago

10.38.4

2 years ago

10.37.6

3 years ago

10.37.5

3 years ago

10.37.2

3 years ago

10.37.1

3 years ago

10.37.4

3 years ago

10.37.3

3 years ago

10.37.0

3 years ago