mirror of
https://github.com/ivuorinen/actions.git
synced 2026-01-26 11:34:00 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9480614ba2 |
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user