31 lines
701 B
YAML
Vendored
31 lines
701 B
YAML
Vendored
name: Setup Node.js Environment
|
|
description: Install Node.js and pnpm with caching
|
|
|
|
inputs:
|
|
node-version:
|
|
description: Node.js version to install
|
|
required: false
|
|
default: '22'
|
|
pnpm-version:
|
|
description: pnpm version to install
|
|
required: false
|
|
default: '10.15.0'
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: ${{ inputs.pnpm-version }}
|
|
run_install: false
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ inputs.node-version }}
|
|
cache: pnpm
|
|
|
|
- name: Install dependencies
|
|
shell: bash
|
|
run: pnpm install --frozen-lockfile |