-
-
Notifications
You must be signed in to change notification settings - Fork 11
69 lines (67 loc) · 2.06 KB
/
Copy pathdiff-dependencies.yml
File metadata and controls
69 lines (67 loc) · 2.06 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Dependency Diff
on:
pull_request:
jobs:
build-main:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
ref: main
- name: Use Node
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: 24.x
- name: Install Dependencies
run: npm ci --ignore-scripts
- name: Build
run: node --run build
- name: Pack
run: npm pack
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: base-packages
path: '*.tgz'
build-pr:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Use Node
uses: actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6.0.0
with:
node-version: 24.x
- name: Install Dependencies
run: npm ci --ignore-scripts
- name: Build
run: node --run build
- name: Pack
run: npm pack
- uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
with:
name: source-packages
path: '*.tgz'
diff_dependencies:
runs-on: ubuntu-latest
needs: [build-main, build-pr]
permissions:
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
name: base-packages
path: ./base-packages
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
with:
name: source-packages
path: ./source-packages
- name: Create Diff
uses: ./
with:
base-packages: ./base-packages/*.tgz
source-packages: ./source-packages/*.tgz