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

add-git-tag

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

add-git-tag

Add new git tag to project

  • 1.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-85.71%
Maintainers
1
Weekly downloads
 
Created
Source

add-git-tag

A simple CLI and npm package to generate git tag with vscode and node projects.

Usage

You will need to have git + vscode installed and CLI commands like git + code properly working.

With CLI

$ npx add-git-tag

With API

const { addGitTag } = require("add-git-tag");

addGitTag({ packagePath: "/path/to/package" });
Options
ValueCLITypeRequiredNotes
append-a, --append <append>StringNoAppend text to tag version. Ex: --append -beta for 1.0.0-beta
prepend-p, --prepend <prepend>StringNoPrepend text to tag version. Ex: --append v for v1.0.0
packagePath-f, --package-path <packagePath>StringNoPath for the package.json file. Default: current directory
description-d, --description <description>StringNoDescription for the tag. Default: empty. To skip description file on CLI: -nd, --no-description
descriptionFile-df, --description-file <descriptionFile>StringNoDescription file for the tag, this will ignore description option. Default: empty. Ex: --description-file path/to/description/file
release-r, --release <releaser>jiraNoRelease a version for remote integration. Possible values (jira). Ex: --release jira
config-c, --config <configFile>jiraNoConfiguration file path to load, see configuration file structure. Ex: --config path/to/config/file.json
Config File structure
{
  "releaseName": "String", # Default: "${packageJson.name}${separator}${version}${separator}${branchType}"
  "releaseNameSeparator": "String", # Default: "-"
  "branchTypeSeparator": "String", # Default: "/"
  "jira":
    {
      "email": "String",
      "token": "String",
      "apiUrl": "String",
      "projectName": "String",
      "projectId": 0,
      "projectKey": "String",
    },
}

License

MIT. See the LICENSE file.

Keywords

FAQs

Package last updated on 02 May 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