Avoid using --ignore-workspace (#353)

This commit is contained in:
Mateusz Burzyński
2026-02-19 14:41:21 +00:00
committed by pullfrog[bot]
parent 4ecff49b72
commit 185ca7a832
9 changed files with 82 additions and 41 deletions
+3 -1
View File
@@ -1,6 +1,8 @@
# sync action lockfile when action/package.json changes
if git diff --cached --name-only | grep -q "^action/package.json$"; then
echo "🔒 syncing action/pnpm-lock.yaml..."
pnpm --ignore-workspace -C action install --no-frozen-lockfile
# note: pnpm -C action install will *not* treat "action" as a monorepo root if run from repo root;
# to install with action/ as the workspace root (and search upwards), cd into action first:
(cd action && pnpm install --no-frozen-lockfile)
git add action/pnpm-lock.yaml
fi