bump-version #9
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-version | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
type: choice | |
description: Select version bump | |
options: | |
- patch | |
- minor | |
- major | |
jobs: | |
bump-version: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ssh-key: ${{ secrets.RELEASE_SSH_KEY }} | |
- uses: actions/setup-node@v4 | |
with: | |
cache: "yarn" | |
node-version-file: ".tool-versions" | |
- name: Setup build dependencies | |
run: | | |
make deps | |
yarn install | |
- name: Configure Git user | |
run: | | |
git config user.name "jocmp" | |
git config user.email "9521010+jocmp@users.noreply.github.com" | |
- name: Build | |
run: | | |
make build | |
git add dist/ | |
- name: Bump Version | |
run: | | |
bumpver update --${{ github.event.inputs.version }} --allow-dirty |