@riscie/eco-update-tag

Updates the tag of a repo to the next chosen version according the semver symantic.

Usage no npm install needed!

<script type="module">
  import riscieEcoUpdateTag from 'https://cdn.skypack.dev/@riscie/eco-update-tag';
</script>

README

@riscie/eco-update-tag

npm (scoped)

Updates the tag of a repo to the next chosen version according the semver symantic.

Install

npm i -g @riscie/eco-update-tag

Usage

update-tag

Output

Latest tag 	 [1.2.2-RC.3]
? Select new tag:
   prerelease 	 [1.2.2-RC.4]
   patch 	 [1.2.2]
   minor 	 [1.3.0]
   major 	 [2.0.0]
❯  quit
  Latest tag 	 [1.2.2-RC.3]
✔ Select new tag: › minor        [1.3.0]
? Add tag [1.3.0] and push to origin?
❯  yes
   no

Based on