The CalVer GitHub Action provides opinionated Calendar Versioning (CalVer) for your projects. It generates version numbers based on the current date and an optional prefix and suffix.
To use this action in your workflow, add the following step:
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Generate Calendar Version
id: calver
uses: mikluko/action-calver@v25.3.12
with:
token: ${{ github.token }}
- name: Create GitHub Release
env:
GH_TOKEN: ${{ github.token }}
run: gh release create "${{ steps.calver.outputs.next_version }}" --title "${{ steps.calver.outputs.next_version }}" --generate-notesThis project is licensed under the MIT License. See the LICENSE file for details.