forked from npmx-dev/npmx.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) 路 1.29 KB
/
Copy pathdependency-diff.yml
File metadata and controls
49 lines (42 loc) 路 1.29 KB
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
name: dependency-diff
on:
pull_request:
branches:
- main
- release
paths:
- package.json
- pnpm-lock.yaml
- pnpm-workspace.yaml
- docs/package.json
- cli/package.json
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.sha }}
cancel-in-progress: true
permissions:
contents: read
jobs:
dependency-diff:
name: 馃攷 Dependency diff
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- name: 馃攷 Compare dependencies
id: analyze
uses: e18e/action-dependency-diff@9a7f09f5f2993256322e0db17ee4c8d9339dab77 # v1.7.1
with:
mode: artifact
detect-replacements: 'true'
# Too noisy. Disabling until this can report on duplicate CHANGES in this PR.
duplicate-threshold: '999'
dependency-threshold: '15'
size-threshold: '200000'
- name: 馃摛 Upload artifact
if: steps.analyze.outputs.artifact-path
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: e18e-diff-result
path: ${{ steps.analyze.outputs.artifact-path }}