ci: fix workflows

Do not split up "on change" and "do the thing". Less convoluted, no catch-22 with required checks for PRs.
This commit is contained in:
psychedelicious
2024-03-02 21:37:49 +11:00
committed by Kent Keirsey
parent 6935830f99
commit eef3373799
13 changed files with 287 additions and 268 deletions

View File

@@ -1,33 +1,33 @@
name: Install frontend dependencies
name: install frontend dependencies
description: Installs frontend dependencies with pnpm, with caching
runs:
using: 'composite'
steps:
- name: Setup Node 18
- name: setup node 18
uses: actions/setup-node@v4
with:
node-version: '18'
- name: Setup pnpm
- name: setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: false
- name: Get pnpm store directory
- name: get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
- 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
- name: install frontend dependencies
run: pnpm install --prefer-frozen-lockfile
shell: bash
working-directory: invokeai/frontend/web

View File

@@ -1,11 +0,0 @@
name: Install python dependencies
description: Install python dependencies with pip, with caching
runs:
using: 'composite'
steps:
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: pip
cache-dependency-path: pyproject.toml