Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@auto-canary/version-file

Package Overview
Dependencies
Maintainers
0
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@auto-canary/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.

  • 11.2.0--canary.2467.aeb3bae59eabea52cff915e4bdacfeef6e3f60ac.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
51
increased by1600%
Maintainers
0
Weekly downloads
 
Created
Source

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"],
    }}
  ]
}

Keywords

FAQs

Package last updated on 12 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc