Bump Version #125
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: "Version (optional)" | |
required: false | |
default: "minor" | |
jobs: | |
build: | |
name: Bump Version | |
runs-on: ubuntu-latest | |
steps: | |
- name: ⇣ Checkout | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GH_BUILDER_TOKEN }} | |
- name: Use Node.js 16.10 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "16.10" | |
- name: Setup git | |
run: | | |
set -ex | |
git config --global user.email "[email protected]" | |
git config --global user.name "codota-builder" | |
- name: Run npm version | |
run: | | |
set -e | |
NEW_VERSION="${{ github.event.inputs.version }}" | |
npm version $NEW_VERSION | |
- name: Push Changes | |
run: | | |
set -ex | |
git push origin HEAD --tags |