Bump version #8
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: 'Semver type of new 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 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
cache: 'npm' | |
- name: Install dependencies | |
uses: bahmutov/npm-install@v1 | |
- name: Setup Git | |
run: | | |
git config user.name 'Ivan Galiatin' | |
git config user.email 'arxcaeli@gmail.com' | |
- name: bump version | |
run: npm version ${{ github.event.inputs.version }} | |
- name: Push latest version | |
run: git push origin master --follow-tags |