Bump version #21
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: | |
description: 'Type of version (major / minor / patch)' | |
required: true | |
jobs: | |
bump-version: | |
name: Bump version | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out source | |
uses: actions/checkout@v2 | |
with: | |
ssh-key: ${{ secrets.DEPLOY_KEY }} | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
cache: 'yarn' | |
- name: Install dependencies | |
uses: bahmutov/npm-install@v1 | |
- name: Setup Git | |
run: | | |
git config user.name '${{ secrets.GIT_USER_NAME }}' | |
git config user.email '${{ secrets.GIT_USER_EMAIL }}' | |
- name: bump version | |
run: yarn version --${{ github.event.inputs.version }} | |
- name: Push latest version | |
run: git push origin main --follow-tags |