mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-12-06 15:22:32 +09:00
31 lines
760 B
YAML
31 lines
760 B
YAML
name: CI setup
|
|
|
|
description: |
|
|
Sets up the CI environment for the project.
|
|
|
|
inputs:
|
|
install-dependencies:
|
|
description: Install workspace dependencies after setting up the tools and cache.
|
|
default: "true"
|
|
run-scripts:
|
|
description: Run dependency lifecycle scripts during installation.
|
|
default: "false"
|
|
|
|
runs:
|
|
using: "composite"
|
|
|
|
steps:
|
|
- uses: pnpm/action-setup@v6
|
|
- uses: actions/setup-node@v5
|
|
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[@]}"
|
|
if: inputs.install-dependencies == 'true'
|
|
shell: bash
|