mirror of
https://github.com/ivuorinen/actions.git
synced 2026-02-06 21:44:37 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9480614ba2 |
@@ -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 don’t 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
|
||||||
|
|||||||
Reference in New Issue
Block a user