From a76ca1f79c58c109a8a79a865cf39891464e8b80 Mon Sep 17 00:00:00 2001 From: Taj Date: Thu, 4 Sep 2025 14:53:12 +0530 Subject: [PATCH] ci: add version bump workflow - Added workflow for version bumping. - Uses `taj54/universal-version-bump`. - Allows choosing patch, minor, or major. - Uses GITHUB_TOKEN for authentication. - Configured for workflow dispatch. --- .github/workflows/version-bump.yml | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/version-bump.yml diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml new file mode 100644 index 0000000..1e77849 --- /dev/null +++ b/.github/workflows/version-bump.yml @@ -0,0 +1,36 @@ +name: Version Bump + +permissions: + contents: write + pull-requests: write + +on: + workflow_dispatch: + inputs: + release_type: + description: 'Select version bump type' + required: true + default: 'patch' + type: choice + options: + - patch + - minor + - major + + + +jobs: + bump: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v5 + with: + fetch-depth: 0 + + - name: Universal Version Bump + uses: taj54/universal-version-bump@v0.14.0 + with: + release_type: ${{ inputs.release_type }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}