From 2405ecb6dea2cf63cf0aba28435355ed14054ca6 Mon Sep 17 00:00:00 2001 From: Evandro Fonseca Junior Date: Thu, 27 Nov 2025 23:09:32 -0300 Subject: [PATCH] chore: enhance pnpm installation logic in release workflow - Updated the GitHub Actions release workflow to conditionally install frontend dependencies based on the presence of a pnpm-lock.yaml file, ensuring more flexible dependency management. --- .github/workflows/release.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f104df..3313826 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -64,7 +64,12 @@ jobs: sudo apt-get install -y libwebkit2gtk-4.1-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev patchelf - name: Install frontend dependencies - run: pnpm install --frozen-lockfile + run: | + if [ -f pnpm-lock.yaml ]; then + pnpm install --frozen-lockfile + else + pnpm install + fi - name: Generate changelog run: pnpm generate-changelog @@ -122,6 +127,14 @@ jobs: node-version: '20' cache: 'pnpm' + - name: Install frontend dependencies + run: | + if [ -f pnpm-lock.yaml ]; then + pnpm install --frozen-lockfile + else + pnpm install + fi + - name: Get version id: get_version run: |