https://github.com/ankeetmaini/calver
https://github.com/ankeetmaini/calver
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ankeetmaini/calver
- Owner: ankeetmaini
- License: mit
- Created: 2022-01-29T12:59:26.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-13T15:04:09.000Z (over 3 years ago)
- Last Synced: 2025-07-28T09:03:19.916Z (11 months ago)
- Language: JavaScript
- Size: 350 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# calver
- it works for web - package.json files
- android build.gradle files
## usage
- create a new workflow file inside .github/workflows
- name it release.yml or anything you like
- the file should look something like this
```yml
#workflow Name
name: release
on:
push:
branches:
- "develop"
#jobs
jobs:
bump-version:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Bump version
uses: ankeetmaini/calver@v1
with:
path: ./package.json
platform: web
- name: Bump version android
uses: ankeetmaini/calver@v1
with:
path: ./android.gradle.kts
platform: android
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "[Bot] Update all the things!"
commit_user_name: Calver Bot
commit_user_email: calver@noreply.com
commit_author: Calver Bot
```
> Use either web or android unless you've both the codebases in one repository.