Skip to content

Commit b5d3954

Browse files
committed
Touchup Tagging Workflow
1 parent ef5e24d commit b5d3954

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/tag_version.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ on:
44
workflow_dispatch:
55
inputs:
66
releaseType:
7-
description: 'Semver Release Type (major,minor,patch)'
7+
description: "Semver Release Type (major,minor,patch)"
88
required: true
9+
default: "patch"
10+
type: choice
11+
options:
12+
- patch
13+
- minor
14+
- major
915

1016
jobs:
1117
tag:
@@ -14,13 +20,13 @@ jobs:
1420
- uses: actions/checkout@v4
1521
with:
1622
token: ${{ secrets.MY_TOKEN }}
23+
- uses: pnpm/action-setup@v4
1724
- name: Validate releaseType
18-
run: npx in-string-list ${{ github.event.inputs.releaseType }} major,minor,patch
25+
run: pnpx in-string-list ${{ github.event.inputs.releaseType }} major,minor,patch
1926
- name: Setup Git
2027
run: |
2128
git config --global user.name "Jonathan Johnson"
2229
git config --global user.email "jon.johnson@ucsf.edu"
23-
- uses: pnpm/action-setup@v4
2430
- name: Increment Version
2531
run: pnpm version ${{ github.event.inputs.releaseType }}
2632
- name: Push Changes

0 commit comments

Comments
 (0)