Files
vikunja/.github/actions/setup-frontend/action.yml
renovate[bot] b3c454ea03 chore(deps): update actions/setup-node action to v5 (#1408)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-04 10:05:48 +00:00

31 lines
1.0 KiB
YAML

name: Setup Frontend
description: |
Common setup for frontend jobs using pnpm
Skips heavy binary installs that are needed for e2e by default
inputs:
install-e2e-binaries:
description: 'Install heavy e2e binary downloads'
required: false
default: 'false'
runs:
using: "composite"
steps:
- if: inputs.install-e2e-binaries == 'false'
shell: bash
run: |
echo "CYPRESS_INSTALL_BINARY=0" >> $GITHUB_ENV
echo "PUPPETEER_SKIP_DOWNLOAD=true" >> $GITHUB_ENV
- uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4
with:
run_install: false
package_json_file: frontend/package.json
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
with:
node-version-file: frontend/.nvmrc
cache: 'pnpm'
cache-dependency-path: frontend/pnpm-lock.yaml
- name: Install dependencies
working-directory: frontend
run: pnpm install --frozen-lockfile --prefer-offline
shell: bash