-
-
Notifications
You must be signed in to change notification settings - Fork 24
/
action.yml
48 lines (44 loc) · 1.62 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
name: Version Check
author: Federico Grandi
description: An action that allows you to check whether your npm package version has been updated
inputs:
diff-search:
description: Whether to search the bump commit using diffs (recommended ONLY if not using standard 'npm version' commits)
required: false
default: 'false'
file-name:
description: A custom path to the package.json file
required: false
default: 'package.json'
file-url:
description: A URL to use to fetch the package file, instead of loading the local file
required: false
assume-same-version:
description: Whether to use the version fetched from the package file as the old one or the new one (instead of looking at the diffs)
required: false
static-checking:
description: Whether to check the package from the file-url against the local package, instead of running the usual checks
required: false
token:
description: A GitHub token to use when running on private repos
required: false
default: ${{ github.token }}
github-api-url:
description: The URL for your GitHub API. Some users may be using GitHub Enterprise and need to change this value.
required: false
default: https://api.github.com
outputs:
changed:
description: Whether the version has changed in the examined commits
type:
description: The type of version change, if detectable (e.g. 'patch')
version:
description: The detected version number
commit:
description: The SHA of the commit where the version change has been detected
runs:
using: node20
main: 'lib/index.js'
branding:
icon: package
color: green