forked from ietf-tools/semver-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
63 lines (63 loc) · 2.19 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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'
noVersionBumpBehavior:
description: Whether to exit with an error, warning or silently when none of the commits result in a version bump. (error, warn, current, silent)
required: false
default: error
prefix:
description: A prefix that will be ignored when parsing tags. Useful for monorepos. The prefix will be added back to the output values.
required: false
default: ''
additionalCommits:
description: A list of additional commit messages to parse in order to calculate semver.
required: false
fromTag:
description: Override the tag to use when comparing against the branch in order to fetch the list of commits.
required: false
default: ''
outputs:
current:
description: Current version number / latest tag.
next:
description: Next version number in format v0.0.0
nextStrict:
description: Next version number without the v prefix.
nextMajor:
description: Next version major number in format v0
nextMajorStrict:
description: Next version major number only.
runs:
using: 'node16'
main: 'dist/index.js'
branding:
icon: fast-forward
color: red