- Unified Node.js and pnpm setup across deploy, pr-checks, and security workflows by introducing a custom action for streamlined configuration. - Removed redundant setup steps to enhance workflow clarity and maintainability. - Updated security workflow to include concurrency control for better job management.
27 lines
572 B
YAML
27 lines
572 B
YAML
name: Setup Node & pnpm
|
|
description: Setup Node.js and pnpm with pnpm store caching
|
|
|
|
inputs:
|
|
node-version:
|
|
description: Node.js version to use
|
|
required: false
|
|
default: "22"
|
|
pnpm-version:
|
|
description: pnpm version to use
|
|
required: false
|
|
default: "10.25.0"
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: ${{ inputs.pnpm-version }}
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: ${{ inputs.node-version }}
|
|
cache: pnpm
|