From 9480614ba2231013d99dd5b9c730d2b105b9e160 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Wed, 25 Jun 2025 20:58:01 +0300 Subject: [PATCH] fix(pr-lint): yarn and npm install tweaks (#173) --- pr-lint/action.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pr-lint/action.yml b/pr-lint/action.yml index 66f8f56..ab81499 100644 --- a/pr-lint/action.yml +++ b/pr-lint/action.yml @@ -53,12 +53,16 @@ runs: shell: bash run: | if [ -f pnpm-lock.yaml ]; then - npm install -g pnpm # GitHub Actions runners don’t come with pnpm + npm install -g pnpm pnpm install elif [ -f yarn.lock ]; then + npm install -g yarn yarn install elif [ -f package-lock.json ]; then - npm ci + if ! npm ci; then + echo "::warning ::npm ci failed – falling back to npm install (lockfile drift?)" + npm install + fi else echo "No supported lockfile found, skipping Node.js dependencies installation." fi