Fic install deps again (#9177)

* always install pnpm

* clean upo
This commit is contained in:
pngwn 2024-08-22 20:10:09 +01:00 committed by GitHub
parent 28136bbda7
commit 4a85559219
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 1 additions and 20 deletions

View File

@ -2,9 +2,6 @@ name: "install all deps"
description: "Install all deps"
inputs:
always_install_pnpm:
description: "Dictates whether or not we should install pnpm & dependencies, regardless of the cache"
default: "false"
skip_build:
description: "Skip build"
default: "false"
@ -84,7 +81,6 @@ runs:
- name: install-frontend
uses: "gradio-app/gradio/.github/actions/install-frontend-deps@main"
with:
always_install_pnpm: ${{ inputs.always_install_pnpm }}
skip_build: ${{ inputs.skip_build }}
build_lite: ${{ inputs.build_lite }}
- name: generate json

View File

@ -2,9 +2,6 @@ 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"
skip_build:
description: "Skip build"
default: "false"
@ -31,11 +28,9 @@ runs:
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 --ignore-scripts
- name: Build Css
if: inputs.always_install_pnpm == 'true'
shell: bash
run: pnpm css
- name: Build frontend
@ -43,7 +38,7 @@ runs:
shell: bash
run: pnpm build
- name: generate types
if: inputs.always_install_pnpm == 'true' || inputs.skip_build == 'false' || inputs.build_lite == 'true'
if: inputs.skip_build == 'false' || inputs.build_lite == 'true'
shell: bash
run: pnpm package
- name: Build frontend lite

View File

@ -46,7 +46,6 @@ jobs:
- name: install dependencies
uses: "gradio-app/gradio/.github/actions/install-frontend-deps@main"
with:
always_install_pnpm: true
skip_build: true
- name: build client
run: pnpm --filter @gradio/client --filter @gradio/wasm --filter @gradio/preview build

View File

@ -45,7 +45,6 @@ jobs:
- name: install dependencies
uses: "gradio-app/gradio/.github/actions/install-all-deps@main"
with:
always_install_pnpm: true
python_version: "3.9"
build_lite: "true"
- name: Package Lite NPM package

View File

@ -23,7 +23,6 @@ jobs:
- name: install dependencies
uses: "gradio-app/gradio/.github/actions/install-all-deps@main"
with:
always_install_pnpm: true
skip_build: "false"
- name: Build packages
run: |

View File

@ -52,7 +52,6 @@ jobs:
- name: install dependencies
uses: "gradio-app/gradio/.github/actions/install-all-deps@main"
with:
always_install_pnpm: true
skip_build: "true"
- name: build client
run: pnpm --filter @gradio/client build

View File

@ -46,7 +46,6 @@ jobs:
id: install_deps
uses: "gradio-app/gradio/.github/actions/install-all-deps@main"
with:
always_install_pnpm: true
build_lite: true
skip_build: true
- run: pnpm exec playwright install chromium firefox

View File

@ -45,8 +45,6 @@ jobs:
- name: install dependencies
id: install_deps
uses: "gradio-app/gradio/.github/actions/install-all-deps@main"
with:
always_install_pnpm: true
- name: install outbreak_forecast dependencies
run: |
. venv/bin/activate

View File

@ -49,8 +49,6 @@ jobs:
- uses: actions/checkout@v4
- name: install dependencies
uses: "gradio-app/gradio/.github/actions/install-frontend-deps@main"
with:
always_install_pnpm: true
- name: build client
run: pnpm --filter @gradio/client build
- name: build the wasm module

View File

@ -54,7 +54,6 @@ jobs:
- name: install dependencies
uses: "gradio-app/gradio/.github/actions/install-all-deps@main"
with:
always_install_pnpm: true
skip_build: true
python_version: "3.10"
- name: build client