Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
anuejn authored and phlmn committed Dec 29, 2024
1 parent cf4c206 commit af0bbd3
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: build

on:
push:
branches: [main]

jobs:
frontend:
Expand All @@ -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

Expand All @@ -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
Expand Down

0 comments on commit af0bbd3

Please sign in to comment.