Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zpl-zak committed Jul 29, 2022
1 parent 2dfb9dc commit 1dfa462
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Release build
on:
workflow_dispatch:
inputs:
releaseLevel:
description: 'release level'
required: true
default: 'patch'
type: choice
options:
- patch
- minor
- major

jobs:
release-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup environment
run: npm install
- name: Set up git identity
run: |
git config --global user.email "noreply@example.net" &&
git config --global user.name "zpl-bot"
- name: Release patch
if: ${{ inputs.releaseLevel == 'patch' }}
run: npm run release-patch
- name: Release minor
if: ${{ inputs.releaseLevel == 'minor' }}
run: npm run release-minor
- name: Release major
if: ${{ inputs.releaseLevel == 'major' }}
run: npm run release-major

0 comments on commit 1dfa462

Please sign in to comment.