git-tag-match
Check if the git tag matches package.json version
Install
$ yarn add git-tag-match --dev
Usage
CLI
git-tag-match
Optional parameter fileName
, example:
git-tag-match manifest.json
Node
const gitTagMatch = require('git-match-tag')
const fileName = 'package.json'
const result = await gitTagMatch(fileName)
// {
// referenceVersion: '1.0.0',
// gitVersion: '1.0.0',
// match: true
// }
License
MIT © VTEX