Skip to content

Bump Version

Bump Version #124

Workflow file for this run

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 "builder+skip-ci@codota.com"
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