Socket
Socket
Sign inDemoInstall

semantic-release-major-tag

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    semantic-release-major-tag

Create and update major version tags during release


Version published
Weekly downloads
3.3K
increased by6.81%
Maintainers
1
Install size
6.87 kB
Created
Weekly downloads
 

Readme

Source

semantic-release-major-tag

A package for semantic-release that creates or updates the major tag (v2 for example) for you depending on the release version. The plugin works only on the success step of semantic-release.

Why?

Motivation: https://github.com/semantic-release/semantic-release/issues/1515

Setup

  1. Install
npm install --save-dev semantic-release-major-tag
# or
yarn add -D semantic-release-major-tag
  1. Include the plugin inside the plugins section of the semantic-release configuration.
{
  "plugins": [
    // ...
    "semantic-release-major-tag",
    // ...
  ]
}

Settings

customTags (optional, defaults to [v${major}]) - An array of the tags format to be created.
Use ${major}, ${minor} or ${patch} as strings to specify where you would like the specific version number to be present.

includePrerelease (optional, defaults to false) - Set to true if you would like to include prereleases.

Example:

{
  "plugins": [
    // ...
    ["semantic-release-major-tag", {
      "customTags": ["v${major}-example", "example-${major}.${minor}"],
    }],
    // ...
  ]
}

Keywords

FAQs

Last updated on 29 May 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc