2024-03-02 10:37:49 +00:00
|
|
|
name: install frontend dependencies
|
2023-12-23 14:16:05 +00:00
|
|
|
description: Installs frontend dependencies with pnpm, with caching
|
|
|
|
runs:
|
|
|
|
using: 'composite'
|
|
|
|
steps:
|
2024-03-02 10:37:49 +00:00
|
|
|
- name: setup node 18
|
2023-12-23 14:16:05 +00:00
|
|
|
uses: actions/setup-node@v4
|
|
|
|
with:
|
|
|
|
node-version: '18'
|
|
|
|
|
2024-03-02 10:37:49 +00:00
|
|
|
- name: setup pnpm
|
2024-07-03 17:00:24 +00:00
|
|
|
uses: pnpm/action-setup@v4
|
2023-12-23 14:16:05 +00:00
|
|
|
with:
|
2024-07-03 17:00:24 +00:00
|
|
|
version: 8.15.6
|
2023-12-23 14:16:05 +00:00
|
|
|
run_install: false
|
|
|
|
|
2024-03-02 10:37:49 +00:00
|
|
|
- name: get pnpm store directory
|
2023-12-23 14:16:05 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
|
|
|
|
|
2024-03-02 10:37:49 +00:00
|
|
|
- name: setup cache
|
|
|
|
uses: actions/cache@v4
|
2023-12-23 14:16:05 +00:00
|
|
|
with:
|
|
|
|
path: ${{ env.STORE_PATH }}
|
|
|
|
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-pnpm-store-
|
|
|
|
|
2024-03-02 10:37:49 +00:00
|
|
|
- name: install frontend dependencies
|
2023-12-23 14:16:05 +00:00
|
|
|
run: pnpm install --prefer-frozen-lockfile
|
|
|
|
shell: bash
|
|
|
|
working-directory: invokeai/frontend/web
|