forked from ietf-tools/semver-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
44 lines (44 loc) · 1.36 KB
/
action.yml
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: 'Semver Conventional Commits'
description: 'Calculate the next release version based on conventional commits since latest tag'
author: Nicolas Giard
inputs:
token:
description: GitHub Token
required: true
branch:
description: The branch to use when fetching list of commits to compare against
required: false
default: main
majorList:
description: Comma separated commit prefixes, used to bump Major version
required: false
default: ''
minorList:
description: Comma separated commit prefixes, used to bump Minor version
required: false
default: feat, feature
patchList:
description: Comma separated commit prefixes, used to bump Patch version
required: false
default: fix, bugfix, perf, refactor, test, tests
patchAll:
description: If set to true, will ignore patchList and count any commit as a Patch
required: false
default: 'false'
skipInvalidTags:
description: If set to true, will skip tags that are not valid semver until it finds a proper one (up to 10 from latest).
required: false
default: 'false'
outputs:
current:
description: Current version number
next:
description: Next version number in format v0.0.0
nextStrict:
description: Next version number without the v prefix
runs:
using: 'node16'
main: 'dist/index.js'
branding:
icon: fast-forward
color: red