File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Dependency lockfile drift
2+
3+ on :
4+ pull_request :
5+ paths :
6+ - ' .github/workflows/dependency-lock-drift.yml'
7+ - ' .npmrc'
8+ - ' package.json'
9+ - ' package-lock.json'
10+ - ' scripts/check-lockfile-drift.mjs'
11+ - ' yarn.lock'
12+ push :
13+ branches :
14+ - dev
15+ - main
16+ paths :
17+ - ' .github/workflows/dependency-lock-drift.yml'
18+ - ' .npmrc'
19+ - ' package.json'
20+ - ' package-lock.json'
21+ - ' scripts/check-lockfile-drift.mjs'
22+ - ' yarn.lock'
23+
24+ jobs :
25+ check :
26+ name : Check npm lock matches Yarn lock
27+ runs-on : ubuntu-latest
28+ timeout-minutes : 10
29+ steps :
30+ - uses : actions/checkout@v4
31+
32+ - uses : actions/setup-node@v4
33+ with :
34+ node-version : ' 24'
35+
36+ - name : Use the lockfile generator version
37+ run : npm install --global npm@11.12.1
38+
39+ - name : Check npm lockfile metadata
40+ run : |
41+ cp yarn.lock "$RUNNER_TEMP/yarn.lock"
42+ npm install --package-lock-only --ignore-scripts
43+ cp "$RUNNER_TEMP/yarn.lock" yarn.lock
44+ git diff --exit-code -- package-lock.json
45+
46+ - name : Check for dependency drift
47+ run : node scripts/check-lockfile-drift.mjs
48+
49+ - name : Verify npm install and build
50+ run : |
51+ npm ci
52+ npm run build
Original file line number Diff line number Diff line change 1+ legacy-peer-deps = true
You can’t perform that action at this time.
0 commit comments