From 498816374408065b169bb0e41cca2e5d5955df00 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sat, 2 Dec 2023 17:44:52 +0100 Subject: [PATCH] fix ci --- .github/workflows/release.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b58363a..76d32f0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,12 +14,20 @@ jobs: os: [macos-latest, ubuntu-latest, windows-latest] steps: - - name: Check out Git repository - uses: actions/checkout@v3 + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 # Install pnpm using packageManager key in package.json - - uses: actions/setup-node@v3 + - name: Use Node.js 18 + uses: actions/setup-node@v3 with: node-version: 18 + cache: "pnpm" + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Build + run: pnpm build - name: Run Electron Builder run: | @@ -29,8 +37,6 @@ jobs: windows-latest) platform=windows ;; esac - pnpm install - pnpm build pnpm electron-builder --$platform --publish always env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}