1. @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.
@auto-it/version-file
Package: @auto-it/version-file
Created by: intuit
Last modified: Thu, 04 Apr 2024 20:40:26 GMT
Version: 11.1.6
License: MIT
Downloads: 170,121
Repository: https://github.com/intuit/auto

Install

npm install @auto-it/version-file
yarn add @auto-it/version-file

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.
  • releaseScript: (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. For the publish hook the first parameter passed to the script will be release to indicate that a regular release is being called. For canary and next hooks the first parameter will be snapshot to indicate a prerelease version.

Usage

With default options

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

With optional arguments

 {
  "plugins": [
    "version-file", {"versionFile": "./tools/Version.txt", "releaseScript":"./tools/publish.sh"}
  ]
}

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code