https://github.com/greatwizard/get-github-tag
Retrieve a github tag that can be used to reference the latest build for that keyword or version.
https://github.com/greatwizard/get-github-tag
finder github tag
Last synced: about 2 months ago
JSON representation
Retrieve a github tag that can be used to reference the latest build for that keyword or version.
- Host: GitHub
- URL: https://github.com/greatwizard/get-github-tag
- Owner: GreatWizard
- Created: 2019-07-05T15:28:21.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-07T04:41:29.000Z (over 3 years ago)
- Last Synced: 2024-10-09T12:50:50.375Z (over 1 year ago)
- Topics: finder, github, tag
- Language: JavaScript
- Homepage:
- Size: 111 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# get-github-tag
[](https://github.com/GreatWizard/get-github-tag/actions/workflows/ci.yml)
Retrieve a github tag that can be used to reference the latest build for that keyword or version.
## Usage
### Command Line API
```shell
npx get-github-tag emberjs data beta
```
Will print out:
```shell
The git tag for the latest emberjs/data's beta is:
v4.2.0-beta.0
```
If you'd like to update `ember-data` in your `package.json` with the new tag, you can use the `--write` option:
```shell
npx get-github-tag emberjs data beta --write ember-data
```
### Programmatic API
```js
const getTagFor = require('get-github-tag');
getTagFor('emberjs', 'data', 'beta').then((tag) => {
// use the tag here
});
```