🎨 Refactoring actions
This commit is contained in:
31
.github/actions/setup-node.yml
vendored
Normal file
31
.github/actions/setup-node.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
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
|
||||
Reference in New Issue
Block a user