Skip to content

Commit 7f87095

Browse files
committed
Unified bumping workflow.
1 parent 246f1cd commit 7f87095

3 files changed

Lines changed: 10 additions & 75 deletions

File tree

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Beta
1+
name: Version Bump
22

33
on:
44
workflow_dispatch:
@@ -12,15 +12,18 @@ on:
1212
- express-zod-api
1313
- migration
1414
kind:
15-
description: 'Making pre- what?'
15+
description: 'Version bump kind'
1616
required: true
17-
default: 'release'
17+
default: 'patch'
1818
type: choice
1919
options:
2020
- major
2121
- minor
2222
- patch
23-
- release
23+
- premajor
24+
- preminor
25+
- prepatch
26+
- prerelease
2427

2528
permissions:
2629
contents: write
@@ -42,4 +45,6 @@ jobs:
4245
- name: Bumpp ${{inputs.workspace}}
4346
run: |
4447
pnpm -F ${{inputs.workspace}} exec \
45-
pnpm dlx bumpp pre${{ inputs.kind }} --preid beta --tag=${{inputs.workspace}}-v%s -y
48+
pnpm dlx bumpp ${{inputs.kind}} \
49+
${{ startsWith(inputs.kind, 'pre') && '--preid beta' || '' }} \
50+
--tag=${{inputs.workspace}}-v%s -y

.github/workflows/minor.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/patch.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)