Files

27 lines
582 B
YAML

name: CI setup
description: |
Sets up the CI environment for the project.
inputs:
run-scripts:
description: Run dependency lifecycle scripts during installation.
default: "false"
runs:
using: "composite"
steps:
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: |
install_args=(--frozen-lockfile)
if [ "${{ inputs.run-scripts }}" != "true" ]; then
install_args+=(--ignore-scripts)
fi
pnpm install "${install_args[@]}"
shell: bash