generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
action.yml
66 lines (66 loc) · 2.65 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
64
65
66
name: semver-utils
author: madhead <[email protected]>
description: One-stop shop for working with semantic versions in your workflows
inputs:
version:
required: true
description: A version to process
compare-to:
required: false
description: A version to compare with, if any
diff-with:
required: false
description: A version to diff with. If not specified, the version will be diffed with the `compare-to` input. If `compare-to` is not specified either, nothing happens.
satisfies:
required: false
description: A range to check against
identifier:
required: false
description: An identifier to pass to the semver's inc function
lenient:
required: false
description: Do not fail on incorrect input
default: 'true'
outputs:
release:
description: Version's release (major.minor.patch)
major:
description: Version's major number
minor:
description: Version's minor number
patch:
description: Version's patch number
build:
description: Version's build
build-parts:
description: Number of components in version's build. Individual сomponents are returned as `build-N` outputs, where an is an index from zero to `build-parts` - 1.
prerelease:
description: Version's pre-release
prerelease-parts:
description: Number of components in version's pre-release. Individual сomponents are returned as `prerelease-N` outputs, where an is an index from zero to `prerelease-parts` - 1.
comparison-result:
description: If the compare-to was provided, this output will contain "<" if comes after the version, ">" if it preceeds it, and "=" if they are equal
diff-result:
description: If the diff-to or compare-to were provided, this output will contain the diff result
satisfies:
description: true if the version satisfies the given range
inc-major:
description: A result of the call of the semver's `inc` function with `major` increment
inc-premajor:
description: A result of the call of the semver's `inc` function with `premajor` increment
inc-minor:
description: A result of the call of the semver's `inc` function with `minor` increment
inc-preminor:
description: A result of the call of the semver's `inc` function with `preminor` increment
inc-patch:
description: A result of the call of the semver's `inc` function with `patch` increment
inc-prepatch:
description: A result of the call of the semver's `inc` function with `prepatch` increment
inc-prerelease:
description: A result of the call of the semver's `inc` function with `prerelease` increment
runs:
using: node20
main: dist/index.js
branding:
icon: hash
color: gray-dark