Tag semantically with one command.

Overview

gsvt

Create git semver tags with additional major and minor tags easily

gsvt

Example

Let's say the latest tag is v2.1.1:

Command Result
gsvt v2.1.2, v2.1, v2
gsvt major v3.0.0, v3.0, v3
gsvt minor v2.2.0, v2.2, v2
gsvt patch v2.1.2, v2.1, v2
gsvt 1.2.3 v1.2.3, v1.2, v1

If there is no tag matching the pattern v*.*.*, the next patch will be v0.0.1.

Why?

Unlike npm, some registry services like GitHub Actions didn't resolve the version with semantically versioned tags by default. For example, we can install the latest 1.x.x package with npm install package@1 but we can't do the same thing with actions/my-action@v1. We have to specify the exact version like actions/[email protected].

We recommend creating releases using semantically versioned tags – for example, v1.1.3 – and keeping major (v1) and minor (v1.1) tags current to the latest appropriate commit. For more information, see "About custom actions" and "About semantic versioning. -- Releasing and maintaining actions - GitHub Docs

The way to let the user use the action semantically is creating tags with the major version like v1 and the minor version like v1.1, but it's not easy to create these tags manually, so I created this tool to resolve this with one command simply.

Install

npm install -g gsvt

Or use npx gsvt directly without installing.

Usage

gsvt detect the git tags with v*.*.* automatically, and create the next patch semver tag.

gsvt

You can increase the version with major or minor:

gsvt major
gsvt minor
gsvt patch

gsvt patch is equal to gsvt.

You can also specify the version manually:

gsvt <version>
gsvt v0.1.0

And you can push the commit with tags:

git push origin main --tags -f

License

MIT

Copyright (c) 2022-preset ViPro (京京)

You might also like...

Simple tag input for Bootstrap

Tagin Simple tag input for Bootstrap. Supports bootstrap v4 and v5. Demo: https://tagin.netlify.app/ Features Custom separators Enable/disable duplica

Sep 28, 2022

Tag cloud plugin for jQuery, showing bigger tags in the center

Tag cloud plugin for jQuery, showing bigger tags in the center

jquery.tagcloud v1.2.0 Tag cloud plugin for jQuery, showing bigger tags in the center. Usage There are two ways to define a tag cloud: Use ul and li H

Jun 30, 2022

Generate release notes from git commit history either commit range or tag range.

Generate release notes from git commit history either commit range or tag range.

Would you like to support me? Release Notes Generate release notes from git commit history either commit range or tag range. App Store Template Change

Oct 8, 2022

🏏 GitHub action to split your Git release tag into SemVer 2.0 parts

🏏 Git Tag Action GitHub action to split your Git release tag into SemVer 2.0 parts This is a simple action to split your git tag, usually for release

Oct 31, 2022

A compilation of Google Tag Manager (GTM) adapters written for measuring interactions with embedded content.

Google Tag Manager (GTM) Custom HTML Adapters for Measuring Embedded Content Interactions This repository contains adapters for sending interaction da

Oct 3, 2022

Zero Dependency, Vanilla JavaScript Tag Editor

Zero Dependency, Vanilla JavaScript Tag Editor

_____ |_ _|___ ___ ___ ___ ___ | | | .'| . | . | -_| _| |_| |__,|_ |_ |___|_| |___|___| version 0.4.4 Tagger: Zero dependenc

Nov 25, 2022

Tampermonkey script which adds the ability to add a user-defined label/tag/flair on a user, shown throughout Hacker News.

Hacker News User Tags Hacker News User Tags is a Tampermonkey userscript which allows the user to associate a custom coloured label/tag on usernames t

Oct 7, 2022

It's an AI Tag (Prompt) generator for magic drawer! We have many tags and support to generate prompts easily!

It's an AI Tag (Prompt) generator for magic drawer! We have many tags and support to generate prompts easily!

魔导绪论 AI 魔咒生成器, 使用由 B 站 UP 主 十二今天也很可爱 提供的 4 万个 tag 并提供中文检索,并提供了魔咒社区方便魔法师们直接复制生成。永远免费,永无广告,无商业。 v2 版本更新内容 使用 Netlify 的云函数提供更为快速的社区数据操作!(暂时不知道花费多少) 查看自己的

Jan 1, 2023

Zenload - "Load couple loaders and apply transform one-by-one

Zenload Load couple loaders and apply transforms one-by-one. Install npm i zenload -g How to use? With env vairable ZENLOAD: NODE_OPTIONS='"--loader

Jan 25, 2022
Owner
ViPro (京京)
A lazy FE Developer 🐈‍⬛
ViPro (京京)
Download all Moodle files with one click. This is a Chrome extension built to save time and effort from downloading files manually one by one!

Moodle Downloader Extension Moodle downloader extension for Chrome. The extension is tested with both the TUM moodle and the official moodle demo. Not

Zhongpin Wang 8 Nov 15, 2022
Run a command, watch the filesystem, stop the process on file change and then run the command again...

hubmon Run a command, watch the filesystem, stop the process on file change and then run the command again... Install You can install this command lin

Hubert SABLONNIÈRE 7 Jul 30, 2022
Build your entire project with one command 🚀

Dev Template dt --template mvc No more installing and configuring all basic dependencies manually every time you start a new project. the dev template

dev template 28 Nov 8, 2022
Create nbundle-powered Notion apps with one command

⚠️ This project is under development and is not ready for public use. All 1.0.x releases are considered alpha releases, are not stable, and may have b

nbundle 11 Nov 29, 2022
Supercharge your All-in-One workspace with the Command Palette within Notion 🕹️

Notion Palette Supercharge your All-in-One workspace with the Command Palette within Notion ??️ Notion Palette is a free and open source extension, yo

Ruter 13 Nov 10, 2022
VanillaSelectBox - A dropdown menu with lots of features that takes a select tag and transforms it into a single or multi-select menu with 1 or 2 levels

vanillaSelectBox v1.0.0 vanillaSelectBox : v1.00 : Adding a package.json file New : Possibility to change the dropdown tree and change the remote sear

philippe MEYER 103 Dec 16, 2022
An in-browser JavaScript variable dumper, similar in functionality to ColdFusion's cfdump tag.

prettyPrint.js © James Padolsey prettyPrint.js is an in-browser JavaScript variable dumper, similar in functionality to ColdFusion's cfdump tag. First

Padolsey (Archived Projects) 655 Sep 18, 2022
Felipe Santana's Figma Course Tag Generator

Gerador de Tags do Curso de Figma do Felipe Santana Deployment After having run the create-remix command and selected "Vercel" as a deployment target,

Jardel Gonçalves 6 Apr 27, 2022
A multi-tag input for sanity studio.

sanity-plugin-tags A multi-tag input for sanity studio. Fully featured with autocomplete capabilities, live updates, predefined tag options, style and

P Christopher Bowers 7 Jul 22, 2022
A logseq plugin to extract tweets. Optionally tag the tweet's author as well.

Logseq Twitter Extractor Plugin If this plugin helps you, I'd really appreciate your support. You can buy me a coffee here. A quick utility to parse a

null 17 Nov 17, 2022