-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (40 loc) · 1.12 KB
/
Copy pathbump.yaml
File metadata and controls
44 lines (40 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: ⏫ Bump the version
on:
workflow_dispatch:
inputs:
releaseType:
description: "What kind of release is this?"
required: false
default: "auto"
type: choice
options:
- "auto"
- "major"
- "minor"
- "patch"
jobs:
bump-version:
name: Bump version
runs-on: ubuntu-latest
permissions:
contents: write
environment: release
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
fetch-depth: 0
token: ${{ secrets.PAT }}
- name: Setup mise
uses: jdx/mise-action@dba19683ed58901619b14f395a24841710cb4925 # v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Bump version and changelog
run: >
mise run release:bump --
--hook-profile ci
--skip-ci
--${{ github.event.inputs.releaseType == 'auto' && 'auto' || github.event.inputs.releaseType }}
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}