Bump Versions #50
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Bump Versions | |
on: | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: Branch for which you wish to bump and publish | |
default: main | |
preId: | |
description: The prerelease name (Only required if using a bump starting with `pre`) | |
default: alpha | |
bump: | |
description: Increment a version by the specified level | |
type: choice | |
default: prerelease | |
options: | |
- major | |
- minor | |
- patch | |
- premajor | |
- preminor | |
- prepatch | |
- prerelease | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
permissions: | |
contents: write | |
pull-requests: write | |
actions: read | |
deployments: read | |
jobs: | |
bump-version: | |
runs-on: ubuntu-latest | |
env: | |
ACTIONS_RUNNER_DEBUG: true | |
steps: | |
- name: Bump Versions | |
env: | |
ACTIONS_RUNNER_DEBUG: true | |
uses: dynamic-labs/sdk/.github/actions/release@main | |
id: bumpversion | |
with: | |
type: bump | |
bump: ${{ github.event.inputs.bump }} | |
ref: ${{ github.event.inputs.branch }} | |
preId: ${{ github.event.inputs.preId }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v4 | |
with: | |
base: ${{ github.event.inputs.branch }} | |
commit-message: | | |
chore(bump-version): bump package versions (${{ steps.bumpversion.outputs.version }}) [skip ci] | |
branch: github-bot/bump-version-v${{ steps.bumpversion.outputs.major }} | |
delete-branch: true | |
title: | | |
chore(bump-version): bump package versions (${{ steps.bumpversion.outputs.version }}) | |
body: "" |