mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
34 lines
898 B
YAML
34 lines
898 B
YAML
name: install frontend dependencies
|
|
description: Installs frontend dependencies with pnpm, with caching
|
|
runs:
|
|
using: 'composite'
|
|
steps:
|
|
- name: setup node 18
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '18'
|
|
|
|
- name: setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 8.15.6
|
|
run_install: false
|
|
|
|
- name: get pnpm store directory
|
|
shell: bash
|
|
run: |
|
|
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
|
|
|
- name: setup cache
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ${{ env.STORE_PATH }}
|
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-pnpm-store-
|
|
|
|
- name: install frontend dependencies
|
|
run: pnpm install --prefer-frozen-lockfile
|
|
shell: bash
|
|
working-directory: invokeai/frontend/web
|