https://github.com/vtex/git-tag-match
Check if the git tag matches package.json version
https://github.com/vtex/git-tag-match
srv-store-framework xp-developer
Last synced: 2 months ago
JSON representation
Check if the git tag matches package.json version
- Host: GitHub
- URL: https://github.com/vtex/git-tag-match
- Owner: vtex
- Created: 2018-12-10T17:24:18.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-10T17:34:31.000Z (over 6 years ago)
- Last Synced: 2025-01-26T10:08:16.130Z (4 months ago)
- Topics: srv-store-framework, xp-developer
- Language: JavaScript
- Size: 4.88 KB
- Stars: 1
- Watchers: 11
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# git-tag-match
> Check if the git tag matches package.json version
## Install
```sh
$ yarn add git-tag-match --dev
```## Usage
### CLI
```sh
git-tag-match
```Optional parameter `fileName`, example:
```sh
git-tag-match manifest.json
```### Node
```js
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](https://www.vtex.com)