Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skbhati199/versionupgrad
A github action that makes sure that git tag and version in package.json match
https://github.com/skbhati199/versionupgrad
Last synced: about 1 month ago
JSON representation
A github action that makes sure that git tag and version in package.json match
- Host: GitHub
- URL: https://github.com/skbhati199/versionupgrad
- Owner: skbhati199
- Created: 2022-06-10T20:07:25.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-08T21:13:16.000Z (about 2 years ago)
- Last Synced: 2024-12-12T13:48:03.355Z (about 2 months ago)
- Language: TypeScript
- Size: 22.7 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# version-upgrad
A github action that makes sure that git tag and version in package.json match
# Usage
You can safeguard that your package.json and your git tag matches using this action and proceed to release after the check successfully ran.
```yaml
name: Releaseon:
push:
tags:
- "*"jobs:
setup:
name: Setup
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master- name: version-upgrad
id: version-upgrad
uses: skbhat199/[email protected]
with:
TAG_PREFIX: v # Optional, default prefix is ""
# TAG_PREFIX may also be defined under the 'env' key.
```The action outputs package.json version as `PACKAGE_VERSION` and the tag (without 'refs/tags/') as `TAG_VERSION`.
Eg. use it as `steps.version-upgrad.outputs.PACKAGE_VERSION` in other steps.