Creates a lightweight Git tag.
The name of the tag to create.
"v1.0.0" Copy
"v1.0.0"
"hotfix-1" Copy
"hotfix-1"
await createTag("v1.0.0")// Same as: git tag v1.0.0 Copy
await createTag("v1.0.0")// Same as: git tag v1.0.0
createTag("hotfix-1") .then(output => console.log(output)) .catch(error => console.error(error)) Copy
createTag("hotfix-1") .then(output => console.log(output)) .catch(error => console.error(error))
await createTag("v1.0.0", { force: true })// Same as: git tag -f v1.0.0 Copy
await createTag("v1.0.0", { force: true })// Same as: git tag -f v1.0.0
1.0.0
Creates a lightweight Git tag.