We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 668e0ad commit 331965bCopy full SHA for 331965b
1 file changed
.github/workflows/check-package-lock.yml
@@ -1,13 +1,16 @@
1
name: Check Package Lock File
2
3
+permissions:
4
+ contents: read
5
+
6
concurrency:
7
group: check-package-lock-${{ github.ref }}
8
cancel-in-progress: true
9
10
on:
11
push:
12
branches:
- - "**" # Run on push to any branch
13
+ - main # Run on push to main branch only
14
pull_request:
15
16
- "**" # Run on PR to any branch
@@ -40,3 +43,11 @@ jobs:
40
43
exit 1
41
44
fi
42
45
echo "SUCCESS: package-lock.json file is valid and not empty"
46
47
+ - name: Setup Node.js
48
+ uses: actions/setup-node@v4
49
+ with:
50
+ node-version: '22'
51
52
+ - name: Validate package-lock.json is valid and in sync
53
+ run: npm ci --dry-run --ignore-scripts
0 commit comments