fix(pr-lint): yarn and npm install tweaks (#173)

This commit is contained in:
2025-06-25 20:58:01 +03:00
committed by GitHub
parent 99f3911475
commit 6c36af73ba

View File

@@ -53,12 +53,16 @@ runs:
shell: bash shell: bash
run: | run: |
if [ -f pnpm-lock.yaml ]; then if [ -f pnpm-lock.yaml ]; then
npm install -g pnpm # GitHub Actions runners dont come with pnpm npm install -g pnpm
pnpm install pnpm install
elif [ -f yarn.lock ]; then elif [ -f yarn.lock ]; then
npm install -g yarn
yarn install yarn install
elif [ -f package-lock.json ]; then 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 else
echo "No supported lockfile found, skipping Node.js dependencies installation." echo "No supported lockfile found, skipping Node.js dependencies installation."
fi fi