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
12 changes: 8 additions & 4 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,16 @@ jobs:
with:
bun-version: ${{ inputs.bun-version }}

- if: ${{ inputs.package-manager != 'bun' }}
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
# Runs for EVERY package manager, bun included. bun is the PM/runtime, but
# native and postinstall deps (sharp, cypress, …) spawn `node` during
# `bun install`, so a modern Node must be on PATH regardless — otherwise
# a runner whose system `node` is old (common on self-hosted) crashes the
# install. No npm/yarn/pnpm cache for bun; bun manages its own store.
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: ${{ inputs.node-version }}
cache: ${{ inputs.package-manager == 'yarn' && 'yarn' || inputs.package-manager == 'pnpm' && 'pnpm' || 'npm' }}
cache-dependency-path: ${{ inputs.cache-dependency-path }}
cache: ${{ inputs.package-manager == 'yarn' && 'yarn' || inputs.package-manager == 'pnpm' && 'pnpm' || inputs.package-manager == 'npm' && 'npm' || '' }}
cache-dependency-path: ${{ inputs.package-manager == 'bun' && '' || inputs.cache-dependency-path }}

- name: Install
env:
Expand Down
Loading