mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
eef3373799
Do not split up "on change" and "do the thing". Less convoluted, no catch-22 with required checks for PRs.
34 lines
893 B
YAML
34 lines
893 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@v2
|
|
with:
|
|
version: 8
|
|
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
|