From d46d468b932aa2a2c101c2819f48e376bd47ece8 Mon Sep 17 00:00:00 2001 From: Jaro Habiger Date: Sun, 29 Dec 2024 00:31:23 +0100 Subject: [PATCH] fix ci --- .github/workflows/build.yml | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index def69317..80cd8bc9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,6 @@ name: build on: push: - branches: [main] jobs: frontend: @@ -14,29 +13,15 @@ jobs: - name: Install Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 22 - uses: pnpm/action-setup@v2 name: Install pnpm id: pnpm-install with: - version: 7 + version: 9 run_install: false - - name: Get pnpm store directory - id: pnpm-cache - shell: bash - run: | - echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT - - - uses: actions/cache@v3 - name: Setup pnpm cache - with: - path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} - key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} - restore-keys: | - ${{ runner.os }}-pnpm-store- - - name: Install dependencies run: pnpm --prefix frontend/ install @@ -50,7 +35,8 @@ jobs: name: frontend root-directory: "frontend/dist/" - - name: clone frontend builds repo + - name: commit to transcribee-frontend-releases repo + if: github.ref == 'refs/heads/main' shell: bash env: SSH_AUTH_SOCK: /tmp/ssh_agent.sock