Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions .github/actions/nodejs/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ inputs:
node-version:
description: "Node.js version to use"
required: false
default: "24"
# Pinned: Node 24.15.0 shipped a regression in the ESM loader's
# CJS translation path that raises `EBADF: bad file descriptor,
# fstat` in getSourceSync -> readFileSync during postinstall
# scripts of native packages (bufferutil, utf-8-validate,
# unrs-resolver, @pshenmic/zeromq). 24.14.1 is unaffected.
default: "24.14.1"
runs:
using: composite
steps:
Expand Down Expand Up @@ -34,4 +39,13 @@ runs:

- name: Install dependencies
shell: bash
run: yarn install --inline-builds
run: |
for attempt in 1 2 3; do
if yarn install --inline-builds; then
exit 0
fi
echo "::warning::yarn install failed on attempt ${attempt}, retrying..."
sleep $((attempt * 5))
done
echo "::error::yarn install failed after 3 attempts"
exit 1
Loading