Skip to content

Commit 8aa08db

Browse files
Verify only one file is present
1 parent 048cfe5 commit 8aa08db

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ jobs:
2525
exit 1
2626
fi
2727
28+
if [ ! -f yarn.lock ] && [ ! -f package-lock.json ]; then
29+
echo "ERROR: No lockfile found,Policy requires exactly ONE package manager lockfile"
30+
exit 1
31+
fi
32+
2833
- name: Use Node.js 22.11.0
2934
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
3035
with:

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ jobs:
8585
exit 1
8686
fi
8787
88+
if [ ! -f yarn.lock ] && [ ! -f package-lock.json ]; then
89+
echo "ERROR: No lockfile found,Policy requires exactly ONE package manager lockfile"
90+
exit 1
91+
fi
92+
8893
# GIT CONFIGURATION
8994
- run: |
9095
git config user.name github-actions

0 commit comments

Comments
 (0)