Skip to content

Manual release

Manual release #3

Workflow file for this run

name: Manual release
on:
workflow_dispatch:
inputs:
release_type:
description: "Select the release type"
required: true
default: "patch"
type: choice
options:
- patch
- minor
- major
jobs:
build:
if: ${{ !contains(github.event.head_commit.message, '[ci-skip]') }} # Prevents job execution
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Git user
run: |
git config --global user.name "GitHub Actions Bot"
git config --global user.email "[email protected]"
- name: Install dependencies
run: npm install
- name: Release Patch
if: ${{ github.event.inputs.release_type == 'patch' }}
run: npm run release-patch
- name: Release Minor
if: ${{ github.event.inputs.release_type == 'minor' }}
run: npm run release-minor
- name: Release Major
if: ${{ github.event.inputs.release_type == 'major' }}
run: npm run release-major