gradio/.github/actions/install-frontend-deps/action.yml
pngwn d6b6c87c4f
Remove mocks (#4550)
* changes

* changes

* remove mocks

* fix scripts

* tweak port

* add logs

* add logs

* do tests again

* tweaks

* fixes

* regen notebooks

* change workers

* change workers

* try to speed up ci

* try again

* try again

* try again

* try again

* try again

* fix actions

* again

* again

* again

* again

* again

* again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* try again

* add names to frontend ci steps
2023-06-19 21:02:03 +01:00

35 lines
1.0 KiB
YAML

name: 'install frontend'
description: 'Install frontend deps'
inputs:
always-install-pnpm:
description: 'Dictates whether or not we should install pnpm & dependencies, regardless of the cache'
default: false
runs:
using: "composite"
steps:
- uses: actions/cache@v3
id: frontend-cache
with:
path: |
gradio/templates/*
key: gradio-lib-front-end-${{ hashFiles('js/**')}}
- name: Install pnpm
if: steps.frontend-cache.outputs.cache-hit != 'true' || inputs.always-install-pnpm == 'true'
uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
cache-dependency-path: pnpm-lock.yaml
- name: Install deps
if: steps.frontend-cache.outputs.cache-hit != 'true' || inputs.always-install-pnpm == 'true'
shell: bash
run: pnpm i --frozen-lockfile
- name: Build frontend
if: steps.frontend-cache.outputs.cache-hit != 'true'
shell: bash
run: pnpm build