-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaction.yml
More file actions
36 lines (33 loc) · 944 Bytes
/
action.yml
File metadata and controls
36 lines (33 loc) · 944 Bytes
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
name: 'npm-diff'
description: 'Generate a formatted diff of npm package-lock.json changes for pull requests'
author: 'stixx'
branding:
icon: 'package'
color: 'red'
inputs:
base-ref:
description: 'Base branch reference for comparison (e.g., main, develop)'
required: false
default: 'main'
path:
description: 'Path to package-lock.json file'
required: false
default: 'package-lock.json'
include-transitive:
description: 'Include transitive dependencies in the diff'
required: false
default: 'false'
outputs:
has_changes:
description: 'Whether package-lock.json has changes (true/false)'
diff:
description: 'The formatted diff output as Markdown table'
added_count:
description: 'Number of packages added'
removed_count:
description: 'Number of packages removed'
updated_count:
description: 'Number of packages updated'
runs:
using: 'node20'
main: 'dist/index.js'