From 97910151a039c858ffa40616633424686925494a Mon Sep 17 00:00:00 2001 From: Nibor <156368035+infnibor@users.noreply.github.com> Date: Tue, 25 Feb 2025 20:03:48 +0100 Subject: [PATCH] Fix workflow error - Fix issue https://github.com/appujet/lavalink-list/issues/156 --- .github/workflows/main .yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main .yml b/.github/workflows/main .yml index b976767..7c6f03f 100644 --- a/.github/workflows/main .yml +++ b/.github/workflows/main .yml @@ -17,11 +17,13 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 - - name: Fix Corepack Key Issue + - name: Corepack run: | corepack disable + rm -rf ~/.cache/corepack + npm install -g corepack corepack enable - corepack prepare pnpm@latest --activate + corepack prepare pnpm@latest --activate || (corepack enable && corepack prepare pnpm@latest --activate) - name: Setup Node.js uses: actions/setup-node@v4 @@ -31,7 +33,7 @@ jobs: - name: Install Dependencies working-directory: apps/workflows - run: pnpm install + run: pnpm install || (rm -rf node_modules && pnpm install) - name: Build working-directory: apps/workflows